Browse Source

Update test class suite to use Tests namespace

pull/1/head
Nafies Luthfi 9 years ago
parent
commit
02cbf7141f
  1. 7
      composer.json
  2. 3
      tests/Feature/Api/ApiEventsTest.php
  3. 3
      tests/Feature/Api/ApiManageProjectsTest.php
  4. 3
      tests/Feature/Auth/ManageUsersTest.php
  5. 3
      tests/Feature/Auth/MemberChangePasswordTest.php
  6. 3
      tests/Feature/Auth/MemberRegistrationAndLoginTest.php
  7. 3
      tests/Feature/Auth/ResetPasswordTest.php
  8. 3
      tests/Feature/ManageFeaturesTest.php
  9. 3
      tests/Feature/ManagePaymentsTest.php
  10. 3
      tests/Feature/ManageProjectsTest.php
  11. 3
      tests/Feature/ManageSubscriptionsTest.php
  12. 3
      tests/Feature/ManageTasksTest.php
  13. 7
      tests/TestCase.php
  14. 2
      tests/Traits/DatabaseMigrateSeeds.php

7
composer.json

@ -33,10 +33,9 @@
}
},
"autoload-dev": {
"classmap": [
"tests/Traits",
"tests/TestCase.php"
]
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [

3
tests/api/ApiEventsTest.php → tests/Feature/Api/ApiEventsTest.php

@ -1,7 +1,10 @@
<?php
namespace Tests\Feature\Api;
use App\Entities\Users\Event;
use App\Entities\Users\User;
use Tests\TestCase;
class ApiEventsTest extends TestCase
{

3
tests/api/ApiManageProjectsTest.php → tests/Feature/Api/ApiManageProjectsTest.php

@ -1,7 +1,10 @@
<?php
namespace Tests\Feature\Api;
use App\Entities\Projects\Project;
use App\Entities\Users\User;
use Tests\TestCase;
class ApiManageProjectsTest extends TestCase
{

3
tests/auth/ManageUsersTest.php → tests/Feature/Auth/ManageUsersTest.php

@ -1,6 +1,9 @@
<?php
namespace Tests\Feature\Auth;
use App\Entities\Users\User;
use Tests\TestCase;
class ManageUsersTest extends TestCase
{

3
tests/auth/MemberChangePasswordTest.php → tests/Feature/Auth/MemberChangePasswordTest.php

@ -1,6 +1,9 @@
<?php
namespace Tests\Feature\Auth;
use App\Entities\Users\User;
use Tests\TestCase;
class MemberChangePasswordTest extends TestCase
{

3
tests/auth/MemberRegistrationAndLoginTest.php → tests/Feature/Auth/MemberRegistrationAndLoginTest.php

@ -1,6 +1,9 @@
<?php
namespace Tests\Feature\Auth;
use App\Entities\Users\User;
use Tests\TestCase;
class MemberRegistrationAndLoginTest extends TestCase
{

3
tests/auth/ResetPasswordTest.php → tests/Feature/Auth/ResetPasswordTest.php

@ -1,6 +1,9 @@
<?php
namespace Tests\Feature\Auth;
use App\Entities\Users\User;
use Tests\TestCase;
class ResetPasswordTest extends TestCase
{

3
tests/functional/ManageFeaturesTest.php → tests/Feature/ManageFeaturesTest.php

@ -1,9 +1,12 @@
<?php
namespace Tests\Feature;
use App\Entities\Projects\Feature;
use App\Entities\Projects\Project;
use App\Entities\Projects\Task;
use App\Entities\Users\User;
use Tests\TestCase;
class ManageFeaturesTest extends TestCase
{

3
tests/functional/ManagePaymentsTest.php → tests/Feature/ManagePaymentsTest.php

@ -1,8 +1,11 @@
<?php
namespace Tests\Feature;
use App\Entities\Payments\Payment;
use App\Entities\Projects\Project;
use App\Entities\Users\User;
use Tests\TestCase;
class ManagePaymentsTest extends TestCase
{

3
tests/functional/ManageProjectsTest.php → tests/Feature/ManageProjectsTest.php

@ -1,11 +1,14 @@
<?php
namespace Tests\Feature;
use App\Entities\Payments\Payment;
use App\Entities\Projects\Feature;
use App\Entities\Projects\Project;
use App\Entities\Projects\Task;
use App\Entities\Users\Role;
use App\Entities\Users\User;
use Tests\TestCase;
class ManageProjectsTest extends TestCase
{

3
tests/functional/ManageSubscriptionsTest.php → tests/Feature/ManageSubscriptionsTest.php

@ -1,8 +1,11 @@
<?php
namespace Tests\Feature;
use App\Entities\Projects\Project;
use App\Entities\Subscriptions\Subscription;
use App\Entities\Users\User;
use Tests\TestCase;
class ManageSubscriptionsTest extends TestCase
{

3
tests/functional/ManageTasksTest.php → tests/Feature/ManageTasksTest.php

@ -1,9 +1,12 @@
<?php
namespace Tests\Feature;
use App\Entities\Projects\Feature;
use App\Entities\Projects\Project;
use App\Entities\Projects\Task;
use App\Entities\Users\User;
use Tests\TestCase;
class ManageTasksTest extends TestCase
{

7
tests/TestCase.php

@ -1,9 +1,12 @@
<?php
namespace Tests;
use App\Entities\Users\Role;
use App\Entities\Users\User;
use Tests\Traits\DatabaseMigrateSeeds;
class TestCase extends Laravel\BrowserKitTesting\TestCase
class TestCase extends \Laravel\BrowserKitTesting\TestCase
{
use DatabaseMigrateSeeds;
@ -23,7 +26,7 @@ class TestCase extends Laravel\BrowserKitTesting\TestCase
{
$app = require __DIR__.'/../bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
\Hash::setRounds(5);
return $app;

2
tests/Traits/DatabaseMigrateSeeds.php

@ -1,5 +1,7 @@
<?php
namespace Tests\Traits;
use Illuminate\Contracts\Console\Kernel;
trait DatabaseMigrateSeeds

Loading…
Cancel
Save