@@ -30,18 +30,18 @@ protected function setUp(): void
3030 */
3131 public function testGetForeignLimit (): void
3232 {
33- $ this -> assertNull (
33+ self :: assertNull (
3434 $ this ->browseForeigners ->getForeignLimit ('Show all ' ),
3535 );
3636
37- $ this -> assertEquals (
37+ self :: assertEquals (
3838 'LIMIT 0, 25 ' ,
3939 $ this ->browseForeigners ->getForeignLimit (null ),
4040 );
4141
4242 $ _POST ['pos ' ] = 10 ;
4343
44- $ this -> assertEquals (
44+ self :: assertEquals (
4545 'LIMIT 10, 25 ' ,
4646 $ this ->browseForeigners ->getForeignLimit (null ),
4747 );
@@ -50,12 +50,12 @@ public function testGetForeignLimit(): void
5050 $ config ->set ('MaxRows ' , 50 );
5151 $ browseForeigners = new BrowseForeigners (new Template (), $ config , new ThemeManager ());
5252
53- $ this -> assertEquals (
53+ self :: assertEquals (
5454 'LIMIT 10, 50 ' ,
5555 $ browseForeigners ->getForeignLimit (null ),
5656 );
5757
58- $ this -> assertEquals (
58+ self :: assertEquals (
5959 'LIMIT 10, 50 ' ,
6060 $ browseForeigners ->getForeignLimit ('xyz ' ),
6161 );
@@ -66,7 +66,7 @@ public function testGetForeignLimit(): void
6666 */
6767 public function testGetHtmlForGotoPage (): void
6868 {
69- $ this -> assertEquals (
69+ self :: assertEquals (
7070 '' ,
7171 $ this ->callFunction (
7272 $ this ->browseForeigners ,
@@ -81,7 +81,7 @@ public function testGetHtmlForGotoPage(): void
8181 $ foreignData ['disp_row ' ] = [];
8282 $ foreignData ['the_total ' ] = 5 ;
8383
84- $ this -> assertEquals (
84+ self :: assertEquals (
8585 '' ,
8686 $ this ->callFunction (
8787 $ this ->browseForeigners ,
@@ -99,15 +99,15 @@ public function testGetHtmlForGotoPage(): void
9999 [$ foreignData ],
100100 );
101101
102- $ this -> assertStringStartsWith ('Page number: ' , $ result );
102+ self :: assertStringStartsWith ('Page number: ' , $ result );
103103
104- $ this -> assertStringEndsWith ('</select> ' , $ result );
104+ self :: assertStringEndsWith ('</select> ' , $ result );
105105
106- $ this -> assertStringContainsString ('<select class="pageselector ajax" name="pos" ' , $ result );
106+ self :: assertStringContainsString ('<select class="pageselector ajax" name="pos" ' , $ result );
107107
108- $ this -> assertStringContainsString ('<option selected="selected" style="font-weight: bold" value="0"> ' , $ result );
108+ self :: assertStringContainsString ('<option selected="selected" style="font-weight: bold" value="0"> ' , $ result );
109109
110- $ this -> assertStringContainsString ('<option value="25" ' , $ result );
110+ self :: assertStringContainsString ('<option value="25" ' , $ result );
111111 }
112112
113113 /**
@@ -117,7 +117,7 @@ public function testGetDescriptionAndTitle(): void
117117 {
118118 $ desc = 'foobar<baz ' ;
119119
120- $ this -> assertEquals (
120+ self :: assertEquals (
121121 ['foobar<baz ' , '' ],
122122 $ this ->callFunction (
123123 $ this ->browseForeigners ,
@@ -131,7 +131,7 @@ public function testGetDescriptionAndTitle(): void
131131 $ config ->set ('LimitChars ' , 5 );
132132 $ browseForeigners = new BrowseForeigners (new Template (), $ config , new ThemeManager ());
133133
134- $ this -> assertEquals (
134+ self :: assertEquals (
135135 ['fooba... ' , 'foobar<baz ' ],
136136 $ this ->callFunction (
137137 $ browseForeigners ,
@@ -165,36 +165,36 @@ public function testGetHtmlForRelationalFieldSelection(): void
165165 $ currentValue ,
166166 );
167167
168- $ this -> assertStringContainsString (
168+ self :: assertStringContainsString (
169169 '<form class="ajax" '
170170 . 'id="browse_foreign_form" name="browse_foreign_from" '
171171 . 'action="index.php?route=/browse-foreigners ' ,
172172 $ result ,
173173 );
174- $ this -> assertStringContainsString ('" method="post"> ' , $ result );
174+ self :: assertStringContainsString ('" method="post"> ' , $ result );
175175
176- $ this -> assertStringContainsString ('<fieldset class="row g-3 align-items-center mb-3"> ' , $ result );
176+ self :: assertStringContainsString ('<fieldset class="row g-3 align-items-center mb-3"> ' , $ result );
177177
178- $ this -> assertStringContainsString ('<input type="hidden" name="field" value="foo"> ' , $ result );
178+ self :: assertStringContainsString ('<input type="hidden" name="field" value="foo"> ' , $ result );
179179
180- $ this -> assertStringContainsString ('<input type="hidden" name="fieldkey" value="bar"> ' , $ result );
180+ self :: assertStringContainsString ('<input type="hidden" name="fieldkey" value="bar"> ' , $ result );
181181
182- $ this -> assertStringContainsString ('<input type="hidden" name="rownumber" value="1"> ' , $ result );
182+ self :: assertStringContainsString ('<input type="hidden" name="rownumber" value="1"> ' , $ result );
183183
184- $ this -> assertStringContainsString ('<div class="col-auto"> ' , $ result );
185- $ this -> assertStringContainsString ('<label class="form-label" for="input_foreign_filter"> ' , $ result );
186- $ this -> assertStringContainsString (
184+ self :: assertStringContainsString ('<div class="col-auto"> ' , $ result );
185+ self :: assertStringContainsString ('<label class="form-label" for="input_foreign_filter"> ' , $ result );
186+ self :: assertStringContainsString (
187187 '<input class="form-control" type="text" name="foreign_filter" '
188188 . 'id="input_foreign_filter" value="5" data-old="5"> ' ,
189189 $ result ,
190190 );
191191
192- $ this -> assertStringContainsString (
192+ self :: assertStringContainsString (
193193 '<input class="btn btn-primary" type="submit" name="submit_foreign_filter" value="Go"> ' ,
194194 $ result ,
195195 );
196196
197- $ this -> assertStringContainsString (
197+ self :: assertStringContainsString (
198198 '<table class="table table-striped table-hover" id="browse_foreign_table"> ' ,
199199 $ result ,
200200 );
@@ -210,11 +210,11 @@ public function testGetHtmlForRelationalFieldSelection(): void
210210 $ currentValue ,
211211 );
212212
213- $ this -> assertStringContainsString (
213+ self :: assertStringContainsString (
214214 '<table class="table table-striped table-hover" id="browse_foreign_table"> ' ,
215215 $ result ,
216216 );
217217
218- $ this -> assertStringContainsString ('<th> ' , $ result );
218+ self :: assertStringContainsString ('<th> ' , $ result );
219219 }
220220}
0 commit comments