mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-16 11:53:49 +09:00
test: Add feature tests
This commit is contained in:
committed by
Attila Kerekes
parent
52620bc331
commit
45cc84c99c
32
tests/Feature/SettingsTest.php
Normal file
32
tests/Feature/SettingsTest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SettingsTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_displays_the_settings_page()
|
||||
{
|
||||
$this->seed();
|
||||
|
||||
$response = $this->get('/settings');
|
||||
|
||||
$response->assertStatus(200);
|
||||
$response->assertSeeInOrder([
|
||||
'Version',
|
||||
'Language',
|
||||
'Support',
|
||||
'Donate',
|
||||
'Background Image',
|
||||
'Homepage Search',
|
||||
'Default Search Provider',
|
||||
'Link opens in',
|
||||
'Custom CSS',
|
||||
'Custom JavaScript',
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user