Page MenuHomeDevCentral

D514.diff
No OneTemporary

D514.diff

diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -28,14 +28,10 @@
"database"
],
"psr-4": {
- "AuthGrove\\": "app/"
+ "AuthGrove\\": "app/",
+ "AuthGrove\\Tests\\": "tests/"
}
},
- "autoload-dev": {
- "classmap": [
- "tests/TestCase.php"
- ]
- },
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
diff --git a/tests/Console/Commands/DatabaseShellTest.php b/tests/Console/Commands/DatabaseShellTest.php
--- a/tests/Console/Commands/DatabaseShellTest.php
+++ b/tests/Console/Commands/DatabaseShellTest.php
@@ -1,5 +1,12 @@
<?php
+namespace AuthGrove\Tests\Console\Commands;
+
+use AuthGrove\Tests\TestCase;
+
+use Artisan;
+use Config;
+
/**
* Test authentication views with GET request and form title checks.
*
diff --git a/tests/Controller/Auth/AuthControllerTest.php b/tests/Controller/Auth/AuthControllerTest.php
--- a/tests/Controller/Auth/AuthControllerTest.php
+++ b/tests/Controller/Auth/AuthControllerTest.php
@@ -1,6 +1,9 @@
<?php
+namespace AuthGrove\Tests\Console\Commands;
+
use AuthGrove\Http\Controllers\Auth\AuthController;
+use AuthGrove\Tests\TestCase;
/**
* Test User model.
diff --git a/tests/Internationalization/LocalizableMessageTest.php b/tests/Internationalization/LocalizableMessageTest.php
--- a/tests/Internationalization/LocalizableMessageTest.php
+++ b/tests/Internationalization/LocalizableMessageTest.php
@@ -1,6 +1,9 @@
<?php
+namespace AuthGrove\Tests\Internationalization;
+
use AuthGrove\Internationalization\LocalizableMessage;
+use AuthGrove\Tests\TestCase;
class LocalizableMessageTest extends TestCase {
diff --git a/tests/Internationalization/UserAttributeTest.php b/tests/Internationalization/UserAttributeTest.php
--- a/tests/Internationalization/UserAttributeTest.php
+++ b/tests/Internationalization/UserAttributeTest.php
@@ -1,6 +1,9 @@
<?php
+namespace AuthGrove\Tests\Internationalization;
+
use AuthGrove\Internationalization\UserAttribute;
+use AuthGrove\Tests\TestCase;
class UserAttributeTest extends TestCase {
diff --git a/tests/Models/UserTest.php b/tests/Models/UserTest.php
--- a/tests/Models/UserTest.php
+++ b/tests/Models/UserTest.php
@@ -1,6 +1,9 @@
<?php
+namespace AuthGrove\Tests\Models;
+
use AuthGrove\Models\User;
+use AuthGrove\Tests\TestCase;
/**
* Test User model.
diff --git a/tests/Providers/EventServiceProviderTest.php b/tests/Providers/EventServiceProviderTest.php
--- a/tests/Providers/EventServiceProviderTest.php
+++ b/tests/Providers/EventServiceProviderTest.php
@@ -1,12 +1,18 @@
<?php
+namespace AuthGrove\Tests\Providers;
+
+use AuthGrove\Tests\TestCase;
+
+use Illuminate\Contracts\Events\Dispatcher;
+
+use Config;
+use File;
+
class EventServiceProviderTest extends TestCase {
public function testType () {
- $this->assertServiceInstanceOf(
- Illuminate\Contracts\Events\Dispatcher::class,
- 'events'
- );
+ $this->assertServiceInstanceOf(Dispatcher::class, 'events');
}
///
diff --git a/tests/Providers/HelpersServiceProviderTest.php b/tests/Providers/HelpersServiceProviderTest.php
--- a/tests/Providers/HelpersServiceProviderTest.php
+++ b/tests/Providers/HelpersServiceProviderTest.php
@@ -1,5 +1,11 @@
<?php
+namespace AuthGrove\Tests\Providers;
+
+use AuthGrove\Tests\TestCase;
+
+use File;
+
class HelpersServiceProviderTest extends TestCase {
///
diff --git a/tests/Providers/ProvidersFolderTest.php b/tests/Providers/ProvidersFolderTest.php
--- a/tests/Providers/ProvidersFolderTest.php
+++ b/tests/Providers/ProvidersFolderTest.php
@@ -1,5 +1,12 @@
<?php
+namespace AuthGrove\Tests\Providers;
+
+use AuthGrove\Tests\TestCase;
+
+use Config;
+use File;
+
class ProvidersFolderTest extends TestCase {
public function testOmittedFiles () {
diff --git a/tests/TestCase.php b/tests/TestCase.php
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,6 +1,11 @@
<?php
-class TestCase extends Illuminate\Foundation\Testing\TestCase
+namespace AuthGrove\Tests;
+
+use Illuminate\Contracts\Console\Kernel;
+use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
+
+class TestCase extends BaseTestCase
{
/**
* The base URL to use while testing the application.
@@ -18,7 +23,7 @@
{
$app = require __DIR__.'/../bootstrap/app.php';
- $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
+ $app->make(Kernel::class)->bootstrap();
return $app;
}
diff --git a/tests/integration/AuthViewsTest.php b/tests/integration/AuthViewsTest.php
--- a/tests/integration/AuthViewsTest.php
+++ b/tests/integration/AuthViewsTest.php
@@ -1,5 +1,7 @@
<?php
+namespace AuthGrove\Tests;
+
/**
* Test authentication views with GET request and form title checks.
*
diff --git a/tests/standalone/ProxyTest.php b/tests/standalone/ProxyTest.php
--- a/tests/standalone/ProxyTest.php
+++ b/tests/standalone/ProxyTest.php
@@ -1,5 +1,9 @@
<?php
+namespace AuthGrove\Tests;
+
+use App;
+
/**
* Tests the bug described in T492: when using a front-end server
* with SSL termination, back-end should serve http:// links.

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 17:23 (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247839
Default Alt Text
D514.diff (5 KB)

Event Timeline