fix
This commit is contained in:
@@ -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');
|
||||
});
|
||||
/*
|
||||
* ================================================================================================
|
||||
|
0
phpunit.xml
Normal file → Executable file
0
phpunit.xml
Normal file → Executable file
36
phpunit.xml.bak
Executable file
36
phpunit.xml.bak
Executable file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="bootstrap/autoload.php"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="false">
|
||||
<testsuites>
|
||||
<testsuite name="all">
|
||||
<directory>./tests/</directory>
|
||||
</testsuite>
|
||||
<testsuite name="unit">
|
||||
<directory>./tests/unit</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist addUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">app/</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<php>
|
||||
<env name="APP_ENV" value="testing"/>
|
||||
<env name="DB_CONNECTION" value="testing"/>
|
||||
<env name="DB_DATABASE" value="testing_db"/>
|
||||
<env name="CACHE_DRIVER" value="array"/>
|
||||
<env name="SESSION_DRIVER" value="array"/>
|
||||
<env name="QUEUE_CONNECTION" value="sync"/>
|
||||
<env name="MAIL_MAILER" value="mail"/>
|
||||
<env name="APP_URL" value="http://localhost:8000"/>
|
||||
<env name="DB_DATABASE" value="testing_db"/>
|
||||
<env name="DB_INSTALL" value="1"/>
|
||||
</php>
|
||||
</phpunit>
|
23
tests/Feature/RouteTest.php
Executable file
23
tests/Feature/RouteTest.php
Executable file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
|
||||
class RouteTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic feature test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_example()
|
||||
{
|
||||
$response = $this->get('/');
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
|
||||
}
|
19
tests/Unit/ArtisanCommandTest.php
Normal file
19
tests/Unit/ArtisanCommandTest.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class ArtisanCommandTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testRouteListCommand()
|
||||
{
|
||||
$this->artisan('route:list')
|
||||
->assertExitCode(0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user