@@ -2,12 +2,15 @@
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Inertia\Testing\AssertableInertia as Assert;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SitePagesTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/**
|
||||
* @return array<string, array{string, string}>
|
||||
*/
|
||||
@@ -30,6 +33,18 @@ class SitePagesTest extends TestCase
|
||||
->assertInertia(fn (Assert $page) => $page->component($component));
|
||||
}
|
||||
|
||||
public function test_admin_login_page_renders()
|
||||
{
|
||||
$this->get(route('login'))
|
||||
->assertOk()
|
||||
->assertInertia(fn (Assert $page) => $page->component('auth/login'));
|
||||
}
|
||||
|
||||
public function test_public_registration_is_disabled()
|
||||
{
|
||||
$this->get('/register')->assertNotFound();
|
||||
}
|
||||
|
||||
public function test_site_defaults_to_indonesian()
|
||||
{
|
||||
$this->get(route('home'))
|
||||
|
||||
Reference in New Issue
Block a user