Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Controller/DomainsTest.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | public function testConfirm(): void | ||||
$domain->save(); | $domain->save(); | ||||
$response = $this->actingAs($user)->get("api/v4/domains/{$domain->id}/confirm"); | $response = $this->actingAs($user)->get("api/v4/domains/{$domain->id}/confirm"); | ||||
$response->assertStatus(200); | $response->assertStatus(200); | ||||
$json = $response->json(); | $json = $response->json(); | ||||
$this->assertEquals('success', $json['status']); | $this->assertEquals('success', $json['status']); | ||||
$this->assertEquals('Domain verified successfully', $json['message']); | $this->assertEquals('Domain verified successfully.', $json['message']); | ||||
} | } | ||||
/** | /** | ||||
* Test fetching domains list | * Test fetching domains list | ||||
*/ | */ | ||||
public function testIndex(): void | public function testIndex(): void | ||||
{ | { | ||||
// User with no domains | // User with no domains | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |