@@ -24,7 +24,7 @@ protected function setUp(): void
2424
2525 public function testAddTagsToPageRecordsWithPageProperties (): void
2626 {
27- $ this -> markTestSkipped ('FIND_IN_SET is not supported in SQLite ' );
27+ self :: markTestSkipped ('FIND_IN_SET is not supported in SQLite ' );
2828 }
2929
3030 public function testAddTagsToPageRecordsWithAutomatedTagging (): void
@@ -46,9 +46,9 @@ public function testAddTagsToPageRecordsWithAutomatedTagging(): void
4646
4747 // Expect calls for tag3 (PID 10)
4848 // Note: TaggingService calls getTreeList for each PID in automated_tagging
49- $ treeServiceMock ->expects ($ this -> any ())
49+ $ treeServiceMock ->expects (self :: any ())
5050 ->method ('getTreeList ' )
51- ->willReturnCallback (function ($ pid , $ depth , $ begin , $ where ) {
51+ ->willReturnCallback (function ($ pid , $ depth , $ begin , $ where ) {
5252 if ($ pid == 10 ) {
5353 if (str_contains ($ where , 'NOT IN (12) ' )) {
5454 return '10,11 ' ;
@@ -70,21 +70,21 @@ public function testAddTagsToPageRecordsWithAutomatedTagging(): void
7070 $ result = $ method ->invoke ($ this ->subject , $ pageRecords , $ tagChar );
7171
7272 // tag3 is automated for PID 10 and its children (10, 11, 12)
73- $ this -> assertStringContainsString ('#tag3# ' , $ result [10 ]['tags ' ]);
74- $ this -> assertStringContainsString ('#tag3# ' , $ result [11 ]['tags ' ]);
75- $ this -> assertStringContainsString ('#tag3# ' , $ result [12 ]['tags ' ]);
76- $ this -> assertStringNotContainsString ('#tag3# ' , $ result [20 ]['tags ' ]);
73+ self :: assertStringContainsString ('#tag3# ' , $ result [10 ]['tags ' ]);
74+ self :: assertStringContainsString ('#tag3# ' , $ result [11 ]['tags ' ]);
75+ self :: assertStringContainsString ('#tag3# ' , $ result [12 ]['tags ' ]);
76+ self :: assertStringNotContainsString ('#tag3# ' , $ result [20 ]['tags ' ]);
7777
7878 // tag4 is automated for PID 10 and its children, but excludes PID 12
79- $ this -> assertStringContainsString ('#tag4# ' , $ result [10 ]['tags ' ]);
80- $ this -> assertStringContainsString ('#tag4# ' , $ result [11 ]['tags ' ]);
81- $ this -> assertStringNotContainsString ('#tag4# ' , $ result [12 ]['tags ' ]);
79+ self :: assertStringContainsString ('#tag4# ' , $ result [10 ]['tags ' ]);
80+ self :: assertStringContainsString ('#tag4# ' , $ result [11 ]['tags ' ]);
81+ self :: assertStringNotContainsString ('#tag4# ' , $ result [12 ]['tags ' ]);
8282 }
8383
8484 public function testAddTagsToPageRecordsEmptyUids (): void
8585 {
8686 $ pageRecords = [10 => ['uid ' => 10 , 'tags ' => '' ]];
8787 $ result = $ this ->subject ->addTagsToPageRecords ($ pageRecords , [], '# ' );
88- $ this -> assertEquals ($ pageRecords , $ result );
88+ self :: assertEquals ($ pageRecords , $ result );
8989 }
9090}
0 commit comments