@@ -15,7 +15,7 @@ public function testDeletionPreventedForDirectories(): void
15
15
$ this ->expectException (UnableToDeleteFile::class);
16
16
17
17
$ client = $ this ->createMock (BunnyCDNClient::class);
18
- $ client ->expects ($ this -> never ())->method ('delete ' );
18
+ $ client ->expects (static :: never ())->method ('delete ' );
19
19
20
20
$ config = $ this ->createMock (AdapterConfig::class);
21
21
$ config ->method ('getClient ' )->willReturn ($ client );
@@ -28,7 +28,7 @@ public function testDeletionPreventedForDirectories(): void
28
28
public function testDeletionSkippedWhenNeverDeleteIsTrue (): void
29
29
{
30
30
$ client = $ this ->createMock (BunnyCDNClient::class);
31
- $ client ->expects ($ this -> never ())->method ('delete ' );
31
+ $ client ->expects (static :: never ())->method ('delete ' );
32
32
33
33
$ config = $ this ->createMock (AdapterConfig::class);
34
34
$ config ->method ('getClient ' )->willReturn ($ client );
@@ -42,7 +42,7 @@ public function testDeletionSkippedWhenNeverDeleteIsTrue(): void
42
42
public function testDeletionOfDirectorySkippedWhenNeverDeleteIsTrue (): void
43
43
{
44
44
$ client = $ this ->createMock (BunnyCDNClient::class);
45
- $ client ->expects ($ this -> never ())->method ('delete ' );
45
+ $ client ->expects (static :: never ())->method ('delete ' );
46
46
47
47
$ config = $ this ->createMock (AdapterConfig::class);
48
48
$ config ->method ('getClient ' )->willReturn ($ client );
@@ -61,13 +61,13 @@ public function testFileExistsReturnsTrueForVariableThumbnail(): void
61
61
62
62
$ adapter = new Shopware6BunnyCdnAdapter ($ config );
63
63
64
- $ this -> assertTrue ($ adapter ->fileExists ('thumbnail?variable ' ));
64
+ static :: assertTrue ($ adapter ->fileExists ('thumbnail?variable ' ));
65
65
}
66
66
67
67
public function testDeleteIsCalled (): void
68
68
{
69
69
$ client = $ this ->createMock (BunnyCDNClient::class);
70
- $ client ->expects ($ this -> once ())->method ('delete ' );
70
+ $ client ->expects (static :: once ())->method ('delete ' );
71
71
72
72
$ config = $ this ->createMock (AdapterConfig::class);
73
73
$ config ->method ('getClient ' )->willReturn ($ client );
@@ -80,7 +80,7 @@ public function testDeleteIsCalled(): void
80
80
public function testDeleteDirectoryIsCalled (): void
81
81
{
82
82
$ client = $ this ->createMock (BunnyCDNClient::class);
83
- $ client ->expects ($ this -> once ())->method ('delete ' );
83
+ $ client ->expects (static :: once ())->method ('delete ' );
84
84
85
85
$ config = $ this ->createMock (AdapterConfig::class);
86
86
$ config ->method ('getClient ' )->willReturn ($ client );
@@ -93,7 +93,7 @@ public function testDeleteDirectoryIsCalled(): void
93
93
public function testFileExistsIsCalled (): void
94
94
{
95
95
$ client = $ this ->createMock (BunnyCDNClient::class);
96
- $ client ->expects ($ this -> once ())->method ('list ' );
96
+ $ client ->expects (static :: once ())->method ('list ' );
97
97
98
98
$ config = $ this ->createMock (AdapterConfig::class);
99
99
$ config ->method ('getClient ' )->willReturn ($ client );
@@ -102,4 +102,4 @@ public function testFileExistsIsCalled(): void
102
102
103
103
$ adapter ->fileExists ('file.txt ' );
104
104
}
105
- }
105
+ }
0 commit comments