From 06fd163c60fc961c5f05cf0d9a1c441fc5bad8a1 Mon Sep 17 00:00:00 2001 From: KNaveenraj-ladybird Date: Tue, 12 Sep 2023 18:19:44 +0530 Subject: [PATCH] fix --- app/Api/routes.php | 2 +- phpunit.xml | 59 +++++++++++++------------------ phpunit.xml.bak | 36 +++++++++++++++++++ tests/Feature/RouteTest.php | 23 ++++++++++++ tests/Unit/ArtisanCommandTest.php | 19 ++++++++++ 5 files changed, 104 insertions(+), 35 deletions(-) mode change 100644 => 100755 phpunit.xml create mode 100755 phpunit.xml.bak create mode 100755 tests/Feature/RouteTest.php create mode 100644 tests/Unit/ArtisanCommandTest.php diff --git a/app/Api/routes.php b/app/Api/routes.php index 42303aca5..844fe40c9 100644 --- a/app/Api/routes.php +++ b/app/Api/routes.php @@ -63,7 +63,7 @@ Route::prefix('api/v1')->group(function () { /* * FCM token response */ - Route::post('fcmtoken', [Common\PushNotificationController::class, 'fcmToken'])->name('fcmtoken'); + //Route::post('fcmtoken', [Common\PushNotificationController::class, 'fcmToken'])->name('fcmtoken'); }); /* * ================================================================================================ diff --git a/phpunit.xml b/phpunit.xml old mode 100644 new mode 100755 index 3f968c80e..45316b227 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,36 +1,27 @@ - - - - ./tests/ - - - ./tests/unit - - - - - app/ - - - - - - - - - - - - - - + + + + app/ + + + + + tests/Feature + + + tests/Unit + + + + + + + + + + + + diff --git a/phpunit.xml.bak b/phpunit.xml.bak new file mode 100755 index 000000000..3f968c80e --- /dev/null +++ b/phpunit.xml.bak @@ -0,0 +1,36 @@ + + + + + ./tests/ + + + ./tests/unit + + + + + app/ + + + + + + + + + + + + + + + diff --git a/tests/Feature/RouteTest.php b/tests/Feature/RouteTest.php new file mode 100755 index 000000000..1f77bfb1e --- /dev/null +++ b/tests/Feature/RouteTest.php @@ -0,0 +1,23 @@ +get('/'); + + $response->assertStatus(200); + } + +} diff --git a/tests/Unit/ArtisanCommandTest.php b/tests/Unit/ArtisanCommandTest.php new file mode 100644 index 000000000..f169ed216 --- /dev/null +++ b/tests/Unit/ArtisanCommandTest.php @@ -0,0 +1,19 @@ +artisan('route:list') + ->assertExitCode(0); + } +}