From 34307d5368f98623cfd8afeaa52f1a0fe350b734 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 | 2 +- phpunit.xml.bak | 36 +++++++++++++++++++++++++++++++ tests/Feature/RouteTest.php | 23 ++++++++++++++++++++ tests/Unit/ArtisanCommandTest.php | 19 ++++++++++++++++ 5 files changed, 80 insertions(+), 2 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 593210b79..800b1d433 --- a/phpunit.xml +++ b/phpunit.xml @@ -33,4 +33,4 @@ - \ No newline at end of file + 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); + } +}