Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3778550
D138.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D138.diff
View Options
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -28,7 +28,8 @@
"database"
],
"psr-4": {
- "Nasqueron\\Notifications\\": "app/"
+ "Nasqueron\\Notifications\\": "app/",
+ "Nasqueron\\Notifications\\Tests\\": "tests/"
}
},
"autoload-dev": {
diff --git a/tests/GitHubGateControllerTest.php b/tests/GitHubGateControllerTest.php
--- a/tests/GitHubGateControllerTest.php
+++ b/tests/GitHubGateControllerTest.php
@@ -1,5 +1,7 @@
<?php
+namespace Nasqueron\Notifications\Tests;
+
use Illuminate\Foundation\Testing\WithoutMiddleware;
class GitHubGateControllerTest extends TestCase {
diff --git a/tests/GitHubPayloadAnalyzerTest.php b/tests/GitHubPayloadAnalyzerTest.php
--- a/tests/GitHubPayloadAnalyzerTest.php
+++ b/tests/GitHubPayloadAnalyzerTest.php
@@ -1,5 +1,7 @@
<?php
+namespace Nasqueron\Notifications\Tests;
+
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Nasqueron\Notifications\Analyzers\GitHubPayloadAnalyzer;
diff --git a/tests/PlaceholderTest.php b/tests/PlaceholderTest.php
--- a/tests/PlaceholderTest.php
+++ b/tests/PlaceholderTest.php
@@ -1,5 +1,7 @@
<?php
+namespace Nasqueron\Notifications\Tests;
+
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
diff --git a/tests/RepositoryGroupMappingTest.php b/tests/RepositoryGroupMappingTest.php
--- a/tests/RepositoryGroupMappingTest.php
+++ b/tests/RepositoryGroupMappingTest.php
@@ -1,5 +1,7 @@
<?php
+namespace Nasqueron\Notifications\Tests;
+
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Nasqueron\Notifications\Analyzers\RepositoryGroupMapping;
diff --git a/tests/StatusTest.php b/tests/StatusTest.php
--- a/tests/StatusTest.php
+++ b/tests/StatusTest.php
@@ -1,5 +1,7 @@
<?php
+namespace Nasqueron\Notifications\Tests;
+
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
diff --git a/tests/TestCase.php b/tests/TestCase.php
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,6 +1,10 @@
<?php
-class TestCase extends Illuminate\Foundation\Testing\TestCase
+namespace Nasqueron\Notifications\Tests;
+
+use Illuminate\Contracts\Console\Kernel;
+
+class TestCase extends \Illuminate\Foundation\Testing\TestCase
{
/**
* The base URL to use while testing the application.
@@ -18,7 +22,7 @@
{
$app = require __DIR__.'/../bootstrap/app.php';
- $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
+ $app->make(Kernel::class)->bootstrap();
return $app;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 05:33 (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264028
Default Alt Text
D138.diff (2 KB)
Attached To
Mode
D138: PSR-1 compatible tests
Attached
Detach File
Event Timeline
Log In to Comment