mirror of
https://github.com/notf0und/SGS
synced 2026-07-18 02:31:08 +00:00
* Fix CI/CD php version
* Add Pint * Format code
This commit is contained in:
parent
0993bfa666
commit
bae79d68ab
@@ -106,7 +106,7 @@ test('DBI user-agent receives relative links', function () {
|
||||
$response = $this->get('/api/dbi/', ['HTTP_USER_AGENT' => 'DBI/1.0']);
|
||||
|
||||
// DBI clients need a relative href like "GameA/" not an absolute path
|
||||
$response->assertSee('href="' . rawurlencode('GameA') . '/"', false);
|
||||
$response->assertSee('href="'.rawurlencode('GameA').'/"', false);
|
||||
});
|
||||
|
||||
test('browser user-agent receives absolute links', function () {
|
||||
@@ -114,7 +114,7 @@ test('browser user-agent receives absolute links', function () {
|
||||
|
||||
$response = $this->get('/api/dbi/');
|
||||
|
||||
$response->assertSee('href="/api/dbi/' . rawurlencode('GameA') . '"', false);
|
||||
$response->assertSee('href="/api/dbi/'.rawurlencode('GameA').'"', false);
|
||||
});
|
||||
|
||||
test('displays the current subdirectory path in the page title', function () {
|
||||
|
||||
@@ -47,7 +47,7 @@ test('only includes files with supported Nintendo Switch extensions', function (
|
||||
|
||||
$files = collect($response->json('files'));
|
||||
expect($files)->toHaveCount(4);
|
||||
expect($files->pluck('url')->every(fn ($url) => !str_ends_with($url, '.txt') && !str_ends_with($url, '.jpg')))->toBeTrue();
|
||||
expect($files->pluck('url')->every(fn ($url) => ! str_ends_with($url, '.txt') && ! str_ends_with($url, '.jpg')))->toBeTrue();
|
||||
});
|
||||
|
||||
test('file url is an absolute URL', function () {
|
||||
|
||||
Reference in New Issue
Block a user