Skip to content

Commit f3b353b

Browse files
author
nejc
committed
Fix all test style issues for CI: Pest.php, TestCase.php, UserRepositoryTest.php.
1 parent 0a2ddb6 commit f3b353b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

tests/Pest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/*
46
|--------------------------------------------------------------------------
57
| Test Case
@@ -26,9 +28,7 @@
2628
|
2729
*/
2830

29-
expect()->extend('toBeOne', function () {
30-
return $this->toBe(1);
31-
});
31+
expect()->extend('toBeOne', fn () => $this->toBe(1));
3232

3333
/*
3434
|--------------------------------------------------------------------------
@@ -41,7 +41,9 @@
4141
|
4242
*/
4343

44-
function something()
44+
function something(): void
4545
{
4646
// ..
4747
}
48+
49+
uses()->group('default');

tests/TestCase.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@
66

77
use PHPUnit\Framework\TestCase as BaseTestCase;
88

9-
abstract class TestCase extends BaseTestCase
10-
{
11-
//
12-
}
9+
abstract class TestCase extends BaseTestCase {}

tests/UserRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
expect($deleted)->toBeTrue();
7575
expect($repo->find($user->id))->toBeNull();
7676
});
77-
});
77+
});

0 commit comments

Comments
 (0)