@@ -37,7 +37,7 @@ protected function setUp(): void
3737 public function testLoadTag (): void
3838 {
3939 $ this ->tagsService
40- ->expects ($ this -> once ())
40+ ->expects (self :: once ())
4141 ->method ('loadTag ' )
4242 ->with (self ::identicalTo (42 ))
4343 ->willReturn (new Tag (['id ' => 42 ]));
@@ -54,7 +54,7 @@ public function testLoadTag(): void
5454 public function testLoadTagByRemoteId (): void
5555 {
5656 $ this ->tagsService
57- ->expects ($ this -> once ())
57+ ->expects (self :: once ())
5858 ->method ('loadTagByRemoteId ' )
5959 ->with (self ::identicalTo ('12345 ' ))
6060 ->willReturn (new Tag (['remoteId ' => '12345 ' ]));
@@ -71,7 +71,7 @@ public function testLoadTagByRemoteId(): void
7171 public function testLoadTagByUrl (): void
7272 {
7373 $ this ->tagsService
74- ->expects ($ this -> once ())
74+ ->expects (self :: once ())
7575 ->method ('loadTagByUrl ' )
7676 ->with ('Netgen/TagsBundle ' , ['eng-GB ' ])
7777 ->willReturn (new Tag (['keywords ' => ['eng-GB ' => 'TagsBundle ' ]]));
@@ -90,7 +90,7 @@ public function testLoadTagChildren(): void
9090 $ tag = new Tag (['id ' => 42 ]);
9191
9292 $ this ->tagsService
93- ->expects ($ this -> once ())
93+ ->expects (self :: once ())
9494 ->method ('loadTagChildren ' )
9595 ->with (self ::identicalTo ($ tag ))
9696 ->willReturn (
@@ -121,7 +121,7 @@ public function testGetTagChildrenCount(): void
121121 $ tag = new Tag (['id ' => 42 ]);
122122
123123 $ this ->tagsService
124- ->expects ($ this -> once ())
124+ ->expects (self :: once ())
125125 ->method ('getTagChildrenCount ' )
126126 ->with (self ::identicalTo ($ tag ))
127127 ->willReturn (2 );
@@ -138,7 +138,7 @@ public function testGetTagChildrenCount(): void
138138 public function testLoadTagsByKeyword (): void
139139 {
140140 $ this ->tagsService
141- ->expects ($ this -> once ())
141+ ->expects (self :: once ())
142142 ->method ('loadTagsByKeyword ' )
143143 ->with ('netgen ' , 'eng-GB ' )
144144 ->willReturn (
@@ -167,7 +167,7 @@ public function testLoadTagsByKeyword(): void
167167 public function testGetTagsByKeywordCount (): void
168168 {
169169 $ this ->tagsService
170- ->expects ($ this -> once ())
170+ ->expects (self :: once ())
171171 ->method ('getTagsByKeywordCount ' )
172172 ->with ('netgen ' , 'eng-GB ' )
173173 ->willReturn (2 );
@@ -186,7 +186,7 @@ public function testLoadTagSynonyms(): void
186186 $ tag = new Tag (['id ' => 42 ]);
187187
188188 $ this ->tagsService
189- ->expects ($ this -> once ())
189+ ->expects (self :: once ())
190190 ->method ('loadTagSynonyms ' )
191191 ->with (self ::identicalTo ($ tag ))
192192 ->willReturn (
@@ -217,7 +217,7 @@ public function testGetTagSynonymCount(): void
217217 $ tag = new Tag (['id ' => 42 ]);
218218
219219 $ this ->tagsService
220- ->expects ($ this -> once ())
220+ ->expects (self :: once ())
221221 ->method ('getTagSynonymCount ' )
222222 ->with (self ::identicalTo ($ tag ))
223223 ->willReturn (2 );
@@ -236,7 +236,7 @@ public function testGetRelatedContent(): void
236236 $ tag = new Tag (['id ' => 42 ]);
237237
238238 $ this ->tagsService
239- ->expects ($ this -> once ())
239+ ->expects (self :: once ())
240240 ->method ('getRelatedContent ' )
241241 ->with (self ::identicalTo ($ tag ))
242242 ->willReturn ([new Content (), new Content ()]);
@@ -256,7 +256,7 @@ public function testGetRelatedContentCount(): void
256256 $ tag = new Tag (['id ' => 42 ]);
257257
258258 $ this ->tagsService
259- ->expects ($ this -> once ())
259+ ->expects (self :: once ())
260260 ->method ('getRelatedContentCount ' )
261261 ->with (self ::identicalTo ($ tag ))
262262 ->willReturn (2 );
@@ -289,7 +289,7 @@ public function testCreateTag(): void
289289 );
290290
291291 $ this ->tagsService
292- ->expects ($ this -> once ())
292+ ->expects (self :: once ())
293293 ->method ('createTag ' )
294294 ->with (self ::identicalTo ($ tagCreateStruct ))
295295 ->willReturn ($ tag );
@@ -342,7 +342,7 @@ public function testUpdateTag(): void
342342 );
343343
344344 $ this ->tagsService
345- ->expects ($ this -> once ())
345+ ->expects (self :: once ())
346346 ->method ('updateTag ' )
347347 ->with (
348348 self ::identicalTo ($ tag ),
@@ -389,7 +389,7 @@ public function testAddSynonym(): void
389389 );
390390
391391 $ this ->tagsService
392- ->expects ($ this -> once ())
392+ ->expects (self :: once ())
393393 ->method ('addSynonym ' )
394394 ->with (self ::identicalTo ($ synonymCreateStruct ))
395395 ->willReturn ($ synonym );
@@ -436,7 +436,7 @@ public function testConvertToSynonym(): void
436436 );
437437
438438 $ this ->tagsService
439- ->expects ($ this -> once ())
439+ ->expects (self :: once ())
440440 ->method ('convertToSynonym ' )
441441 ->with (
442442 self ::identicalTo ($ tag ),
@@ -476,7 +476,7 @@ public function testMergeTags(): void
476476 );
477477
478478 $ this ->tagsService
479- ->expects ($ this -> once ())
479+ ->expects (self :: once ())
480480 ->method ('mergeTags ' )
481481 ->with (
482482 self ::identicalTo ($ tag ),
@@ -521,7 +521,7 @@ public function testCopySubtree(): void
521521 );
522522
523523 $ this ->tagsService
524- ->expects ($ this -> once ())
524+ ->expects (self :: once ())
525525 ->method ('copySubtree ' )
526526 ->with (
527527 self ::identicalTo ($ tag ),
@@ -569,7 +569,7 @@ public function testMoveSubtree(): void
569569 );
570570
571571 $ this ->tagsService
572- ->expects ($ this -> once ())
572+ ->expects (self :: once ())
573573 ->method ('moveSubtree ' )
574574 ->with (
575575 self ::identicalTo ($ tag ),
@@ -603,7 +603,7 @@ public function testDeleteTag(): void
603603 );
604604
605605 $ this ->tagsService
606- ->expects ($ this -> once ())
606+ ->expects (self :: once ())
607607 ->method ('deleteTag ' )
608608 ->with (self ::identicalTo ($ tag ));
609609
@@ -624,7 +624,7 @@ public function testDeleteTag(): void
624624 public function testNewTagCreateStruct (): void
625625 {
626626 $ this ->tagsService
627- ->expects ($ this -> once ())
627+ ->expects (self :: once ())
628628 ->method ('newTagCreateStruct ' )
629629 ->with (self ::identicalTo (42 ), self ::identicalTo ('eng-GB ' ))
630630 ->willReturn (new TagCreateStruct (['parentTagId ' => 42 , 'mainLanguageCode ' => 'eng-GB ' ]));
@@ -642,7 +642,7 @@ public function testNewTagCreateStruct(): void
642642 public function testNewSynonymCreateStruct (): void
643643 {
644644 $ this ->tagsService
645- ->expects ($ this -> once ())
645+ ->expects (self :: once ())
646646 ->method ('newSynonymCreateStruct ' )
647647 ->with (self ::identicalTo (42 ), self ::identicalTo ('eng-GB ' ))
648648 ->willReturn (new SynonymCreateStruct (['mainTagId ' => 42 , 'mainLanguageCode ' => 'eng-GB ' ]));
@@ -660,7 +660,7 @@ public function testNewSynonymCreateStruct(): void
660660 public function testNewTagUpdateStruct (): void
661661 {
662662 $ this ->tagsService
663- ->expects ($ this -> once ())
663+ ->expects (self :: once ())
664664 ->method ('newTagUpdateStruct ' )
665665 ->willReturn (new TagUpdateStruct ());
666666
@@ -678,7 +678,7 @@ public function testSudo(): void
678678 $ callback = static function (): string { return 'some_value ' ; };
679679
680680 $ this ->tagsService
681- ->expects ($ this -> once ())
681+ ->expects (self :: once ())
682682 ->method ('sudo ' )
683683 ->willReturn ($ callback ());
684684
0 commit comments