Skip to content

Commit

Permalink
Fix tests namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieutu committed Sep 5, 2017
1 parent 36a0788 commit 8f4b6f5
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 30 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
},
"autoload-dev": {
"psr-4": {
"Nwidart\\Modules\\Tests\\": "tests"
"Nwidart\\Modules\\Tests\\": "tests",
"Modules\\Recipe\\": "tests/stubs/Recipe"
}
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\LaravelModulesServiceProvider;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/ControllerCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateCommandCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateEventCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateJobCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateListenerCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/GenerateMailCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\tests\BaseTestCase;
use Nwidart\Modules\Tests\BaseTestCase;

class GenerateMailCommandTest extends BaseTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateMiddlewareCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/GenerateNotificationCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\tests\BaseTestCase;
use Nwidart\Modules\Tests\BaseTestCase;

class GenerateNotificationCommandTest extends BaseTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateProviderCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/GenerateRouteServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/MakeRequestCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/MigrateCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Illuminate\Support\Facades\Schema;
use Nwidart\Modules\Repository;
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/MigrationCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/ModelCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/ModuleGeneratorTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Illuminate\Support\Facades\Artisan;
use Nwidart\Modules\Tests\BaseTestCase;
Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/PublishCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/PublishMigrationCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/Commands/PublishTranslationCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests\Commands;
namespace Nwidart\Modules\Tests\Commands;

use Nwidart\Modules\Tests\BaseTestCase;

Expand Down
2 changes: 1 addition & 1 deletion tests/HelpersTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

class HelpersTest extends BaseTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/JsonTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\Exceptions\InvalidJsonException;
use Nwidart\Modules\Json;
Expand Down
2 changes: 1 addition & 1 deletion tests/ModuleFacadeTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\Facades\Module;

Expand Down
2 changes: 1 addition & 1 deletion tests/ModuleTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\Json;
use Nwidart\Modules\Module;
Expand Down
2 changes: 1 addition & 1 deletion tests/NameParserTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\Support\Migrations\NameParser;

Expand Down
2 changes: 1 addition & 1 deletion tests/RepositoryTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Illuminate\Filesystem\Filesystem;
use Nwidart\Modules\Collection;
Expand Down
2 changes: 1 addition & 1 deletion tests/SchemaParserTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\Support\Migrations\SchemaParser;

Expand Down
2 changes: 1 addition & 1 deletion tests/StubTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Nwidart\Modules\tests;
namespace Nwidart\Modules\Tests;

use Nwidart\Modules\Support\Stub;

Expand Down

0 comments on commit 8f4b6f5

Please sign in to comment.