Skip to content

Commit 277316d

Browse files
committed
test: refactor by rector
1 parent ad5bccb commit 277316d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tests/entities/ContributorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testStars(int $contributions, string $expected)
1818
$this->assertSame($expected, $contributor->stars);
1919
}
2020

21-
public function contributionsProvider(): array
21+
public static function contributionsProvider(): array
2222
{
2323
return [
2424
[0, ''],

tests/entities/PostTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
final class PostTest extends ProjectTestCase
1010
{
11-
protected Post $post;
11+
private Post $post;
1212

1313
protected function setUp(): void
1414
{

tests/libaries/BlogLibraryTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,14 @@
44
use App\Libraries\Blog;
55
use CodeIgniter\Config\Factories;
66
use Config\Blog as BlogConfig;
7-
use org\bovigo\vfs\vfsStream;
87
use Tests\Support\ProjectTestCase;
98

109
/**
1110
* @internal
1211
*/
1312
final class BlogLibraryTest extends ProjectTestCase
1413
{
15-
/**
16-
* Our fake filesystem
17-
*/
18-
protected vfsStream $root;
19-
20-
protected Blog $blog;
14+
private Blog $blog;
2115

2216
protected function setUp(): void
2317
{

0 commit comments

Comments
 (0)