mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
added it_get_legal_page test
This commit is contained in:
@@ -36,6 +36,20 @@ class AppTest extends TestCase
|
||||
->assertStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function it_get_legal_page()
|
||||
{
|
||||
$this->setup->seed_default_pages();
|
||||
|
||||
$this->getJson('/api/page/terms-of-service')
|
||||
->assertStatus(200)
|
||||
->assertJsonFragment([
|
||||
'title' => 'Terms of Service',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
@@ -44,7 +58,7 @@ class AppTest extends TestCase
|
||||
Mail::fake();
|
||||
|
||||
Setting::create([
|
||||
'name' => 'contact_email',
|
||||
'name' => 'contact_email',
|
||||
'value' => 'jane@doe.com',
|
||||
]);
|
||||
|
||||
@@ -54,6 +68,6 @@ class AppTest extends TestCase
|
||||
])
|
||||
->assertStatus(201);
|
||||
|
||||
Mail::assertSent( SendContactMessage::class);
|
||||
Mail::assertSent(SendContactMessage::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user