Skip to content

Commit 4bc90c1

Browse files
arukompasgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 981c94e commit 4bc90c1

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

tests/Feature/Authorization/CanDownloadFoldersTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function assertCanDownloadFolder(string $folderName, string $expectedFileName):
2121

2222
function assertCannotDownloadFolder(string $folderName): void
2323
{
24-
get(route('log-viewer.folders.request-download', $folderName))
25-
->assertForbidden();
24+
get(route('log-viewer.folders.request-download', $folderName))
25+
->assertForbidden();
2626
}
2727

2828
test('can download every folder by default', function () {
@@ -33,9 +33,9 @@ function assertCannotDownloadFolder(string $folderName): void
3333
});
3434

3535
test('cannot download a folder that\'s not found', function () {
36-
get(route('log-viewer.folders.request-download', 'notfound'))
37-
->assertNotFound();
38-
});
36+
get(route('log-viewer.folders.request-download', 'notfound'))
37+
->assertNotFound();
38+
});
3939

4040
test('"downloadLogFolder" gate can prevent folder download', function () {
4141
generateLogFiles([$fileName = 'laravel.log']);

tests/Feature/Authorization/CanDownloadLogFileTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function assertCanDownloadFile(string $fileName): void
2020

2121
function assertCannotDownloadFile(string $fileName): void
2222
{
23-
get(route('log-viewer.files.request-download', $fileName))
24-
->assertForbidden();
23+
get(route('log-viewer.files.request-download', $fileName))
24+
->assertForbidden();
2525
}
2626

2727
test('can download every file by default', function () {
@@ -31,9 +31,9 @@ function assertCannotDownloadFile(string $fileName): void
3131
});
3232

3333
test('cannot download a file that\'s not found', function () {
34-
get(route('log-viewer.files.request-download', 'notfound.log'))
35-
->assertNotFound();
36-
});
34+
get(route('log-viewer.files.request-download', 'notfound.log'))
35+
->assertNotFound();
36+
});
3737

3838
test('"downloadLogFile" gate can prevent file download', function () {
3939
generateLogFiles([$fileName = 'laravel.log']);

tests/Feature/Authorization/CanViewLogViewerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use function Pest\Laravel\get;
77

88
test('can define an "auth" callback for authorization', function () {
9-
get(route('log-viewer.index'))->assertOk();
9+
get(route('log-viewer.index'))->assertOk();
1010

1111
// with the gate defined and a false value, it should not be possible to access the log viewer
1212
LogViewer::auth(fn ($request) => false);
@@ -15,7 +15,7 @@
1515
// now let's give them access
1616
LogViewer::auth(fn ($request) => true);
1717
get(route('log-viewer.index'))->assertOk();
18-
});
18+
});
1919

2020
test('the "auth" callback is given with a Request object to check against', function () {
2121
LogViewer::auth(function ($request) {
@@ -28,14 +28,14 @@
2828
});
2929

3030
test('can define a "viewLogViewer" gate as an alternative', function () {
31-
get(route('log-viewer.index'))->assertOk();
31+
get(route('log-viewer.index'))->assertOk();
3232

3333
Gate::define('viewLogViewer', fn ($user = null) => false);
3434
get(route('log-viewer.index'))->assertForbidden();
3535

3636
Gate::define('viewLogViewer', fn ($user = null) => true);
3737
get(route('log-viewer.index'))->assertOk();
38-
});
38+
});
3939

4040
test('local environment can use Log Viewer by default', function () {
4141
app()->detectEnvironment(fn () => 'local');

0 commit comments

Comments
 (0)