Skip to content

Commit 9b8cd06

Browse files
committed
Fix ExampleTest to use existing API endpoint
1 parent ac4ed3a commit 9b8cd06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Feature/ExampleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
namespace Tests\Feature;
44

5-
// use Illuminate\Foundation\Testing\RefreshDatabase;
65
use Tests\TestCase;
76

87
class ExampleTest extends TestCase
98
{
109
/**
11-
* A basic test example.
10+
* API テストエンドポイントが正常に動作するかテスト
1211
*/
1312
public function test_the_application_returns_a_successful_response(): void
1413
{
15-
$response = $this->get('/');
14+
$response = $this->get('/api/test'); // 存在するルートに変更
1615

1716
$response->assertStatus(200);
17+
$response->assertJson(['message' => 'API is working']);
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)