From 02cbf7141f06ec5c6448b20678a74c353c5f0b01 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Wed, 19 Jul 2017 16:41:56 +0800 Subject: [PATCH] Update test class suite to use Tests namespace --- composer.json | 7 +++---- tests/{api => Feature/Api}/ApiEventsTest.php | 3 +++ tests/{api => Feature/Api}/ApiManageProjectsTest.php | 3 +++ tests/{auth => Feature/Auth}/ManageUsersTest.php | 3 +++ tests/{auth => Feature/Auth}/MemberChangePasswordTest.php | 3 +++ tests/{auth => Feature/Auth}/MemberRegistrationAndLoginTest.php | 3 +++ tests/{auth => Feature/Auth}/ResetPasswordTest.php | 3 +++ tests/{functional => Feature}/ManageFeaturesTest.php | 3 +++ tests/{functional => Feature}/ManagePaymentsTest.php | 3 +++ tests/{functional => Feature}/ManageProjectsTest.php | 3 +++ tests/{functional => Feature}/ManageSubscriptionsTest.php | 3 +++ tests/{functional => Feature}/ManageTasksTest.php | 3 +++ tests/TestCase.php | 7 +++++-- tests/Traits/DatabaseMigrateSeeds.php | 2 ++ 14 files changed, 43 insertions(+), 6 deletions(-) rename tests/{api => Feature/Api}/ApiEventsTest.php (98%) rename tests/{api => Feature/Api}/ApiManageProjectsTest.php (90%) rename tests/{auth => Feature/Auth}/ManageUsersTest.php (98%) rename tests/{auth => Feature/Auth}/MemberChangePasswordTest.php (95%) rename tests/{auth => Feature/Auth}/MemberRegistrationAndLoginTest.php (98%) rename tests/{auth => Feature/Auth}/ResetPasswordTest.php (94%) rename tests/{functional => Feature}/ManageFeaturesTest.php (99%) rename tests/{functional => Feature}/ManagePaymentsTest.php (99%) rename tests/{functional => Feature}/ManageProjectsTest.php (99%) rename tests/{functional => Feature}/ManageSubscriptionsTest.php (99%) rename tests/{functional => Feature}/ManageTasksTest.php (98%) diff --git a/composer.json b/composer.json index 4e9b473..2838111 100644 --- a/composer.json +++ b/composer.json @@ -33,10 +33,9 @@ } }, "autoload-dev": { - "classmap": [ - "tests/Traits", - "tests/TestCase.php" - ] + "psr-4": { + "Tests\\": "tests/" + } }, "scripts": { "post-root-package-install": [ diff --git a/tests/api/ApiEventsTest.php b/tests/Feature/Api/ApiEventsTest.php similarity index 98% rename from tests/api/ApiEventsTest.php rename to tests/Feature/Api/ApiEventsTest.php index ec885a5..8a80160 100644 --- a/tests/api/ApiEventsTest.php +++ b/tests/Feature/Api/ApiEventsTest.php @@ -1,7 +1,10 @@ make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); + $app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap(); \Hash::setRounds(5); return $app; diff --git a/tests/Traits/DatabaseMigrateSeeds.php b/tests/Traits/DatabaseMigrateSeeds.php index 41a1f2b..55134e8 100644 --- a/tests/Traits/DatabaseMigrateSeeds.php +++ b/tests/Traits/DatabaseMigrateSeeds.php @@ -1,5 +1,7 @@