You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->expectExceptionMessage( 'Multisite Language Switcher: Collection for reference user has been truncated because it exceeded the maximum of 100 users. Please, use the hook "msls_reference_users" to filter the result before!' );
155
+
$this->expectExceptionMessage(
156
+
'Multisite Language Switcher: Collection for reference user has been truncated because it exceeded the maximum of 100 users. Please, use the hook "msls_reference_users" to filter the result before!'
157
+
);
149
158
150
159
$obj->reference_user();
151
160
}
@@ -160,71 +169,91 @@ public function test_reference_user_over_max(): void {
$this->expectOutputString( '<input type="checkbox" id="sort_by_description" name="msls[sort_by_description]" value="1" /> <label for="sort_by_description">Sort languages by description</label>' );
181
+
$this->expectOutputString(
182
+
'<input type="checkbox" id="sort_by_description" name="msls[sort_by_description]" value="1" /> <label for="sort_by_description">Sort languages by description</label>'
183
+
);
171
184
$obj->sort_by_description();
172
185
}
173
186
174
187
175
188
publicfunctiontest_exclude_current_blog(): void {
176
189
$obj = $this->get_sut();
177
190
178
-
$this->expectOutputString( '<input type="checkbox" id="exclude_current_blog" name="msls[exclude_current_blog]" value="1" /> <label for="exclude_current_blog">Exclude this blog from output</label>' );
191
+
$this->expectOutputString(
192
+
'<input type="checkbox" id="exclude_current_blog" name="msls[exclude_current_blog]" value="1" /> <label for="exclude_current_blog">Exclude this blog from output</label>'
193
+
);
179
194
$obj->exclude_current_blog();
180
195
}
181
196
182
197
functiontest_only_with_translation(): void {
183
198
$obj = $this->get_sut();
184
199
185
-
$this->expectOutputString( '<input type="checkbox" id="only_with_translation" name="msls[only_with_translation]" value="1" /> <label for="only_with_translation">Show only links with a translation</label>' );
200
+
$this->expectOutputString(
201
+
'<input type="checkbox" id="only_with_translation" name="msls[only_with_translation]" value="1" /> <label for="only_with_translation">Show only links with a translation</label>'
202
+
);
186
203
$obj->only_with_translation();
187
204
}
188
205
189
206
functiontest_output_current_blog(): void {
190
207
$obj = $this->get_sut();
191
208
192
-
$this->expectOutputString( '<input type="checkbox" id="output_current_blog" name="msls[output_current_blog]" value="1" /> <label for="output_current_blog">Display link to the current language</label>' );
209
+
$this->expectOutputString(
210
+
'<input type="checkbox" id="output_current_blog" name="msls[output_current_blog]" value="1" /> <label for="output_current_blog">Display link to the current language</label>'
$this->expectOutputString( '<input type="checkbox" id="content_filter" name="msls[content_filter]" value="1" /> <label for="content_filter">Add hint for available translations</label>' );
305
+
$this->expectOutputString(
306
+
'<input type="checkbox" id="content_filter" name="msls[content_filter]" value="1" /> <label for="content_filter">Add hint for available translations</label>'
307
+
);
271
308
$obj->content_filter();
272
309
}
273
310
@@ -300,7 +337,9 @@ function test_render(): void {
$value = sprintf( '<a title="Create a new translation in the de_DE-blog" href="%s"><span class="dashicons dashicons-plus"></span></a> ', $create_link );
95
+
$value = sprintf(
96
+
'<a title="Create a new translation in the de_DE-blog" href="%s"><span class="dashicons dashicons-plus"></span></a> ',
$value = sprintf( '<a title="Create a new translation in the de_DE-blog" href="%s"><span class="dashicons dashicons-plus"></span></a> ', $create_link );
116
+
$value = sprintf(
117
+
'<a title="Create a new translation in the de_DE-blog" href="%s"><span class="dashicons dashicons-plus"></span></a> ',
0 commit comments