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); + } +}