5
5
* @package image-prioritizer
6
6
*/
7
7
8
- class Test_IP_Helper extends WP_UnitTestCase {
8
+ class Test_Image_Prioritizer_Helper extends WP_UnitTestCase {
9
9
10
10
/**
11
11
* Test printing the meta generator tag.
12
12
*
13
- * @covers ::ip_render_generator_meta_tag
13
+ * @covers ::image_prioritizer_render_generator_meta_tag
14
14
*/
15
- public function test_ip_render_generator_meta_tag (): void {
16
- $ function_name = 'ip_render_generator_meta_tag ' ;
15
+ public function test_image_prioritizer_render_generator_meta_tag (): void {
16
+ $ function_name = 'image_prioritizer_render_generator_meta_tag ' ;
17
17
$ this ->assertSame ( 10 , has_action ( 'wp_head ' , $ function_name ) );
18
18
$ tag = get_echo ( $ function_name );
19
19
$ this ->assertStringStartsWith ( '<meta ' , $ tag );
@@ -26,7 +26,7 @@ public function test_ip_render_generator_meta_tag(): void {
26
26
*
27
27
* @return array<string, mixed> Data.
28
28
*/
29
- public function data_provider_test_ip_filter_tag_walker_visitors (): array {
29
+ public function data_provider_test_filter_tag_walker_visitors (): array {
30
30
return array (
31
31
'no-url-metrics ' => array (
32
32
'set_up ' => static function (): void {},
@@ -827,17 +827,17 @@ static function () {
827
827
}
828
828
829
829
/**
830
- * Test ip_register_tag_visitors ().
830
+ * Test image_prioritizer_register_tag_visitors ().
831
831
*
832
- * @covers ::ip_register_tag_visitors
833
- * @covers IP_Tag_Visitor
834
- * @covers IP_Img_Tag_Visitor
835
- * @covers IP_Background_Image_Styled_Tag_Visitor
832
+ * @covers ::image_prioritizer_register_tag_visitors
833
+ * @covers Image_Prioritizer_Tag_Visitor
834
+ * @covers Image_Prioritizer_Img_Tag_Visitor
835
+ * @covers Image_Prioritizer_Background_Image_Styled_Tag_Visitor
836
836
*
837
- * @dataProvider data_provider_test_ip_filter_tag_walker_visitors
837
+ * @dataProvider data_provider_test_filter_tag_walker_visitors
838
838
* @throws Exception But it won't.
839
839
*/
840
- public function test_ip_filter_tag_walker_visitors ( Closure $ set_up , string $ buffer , string $ expected ): void {
840
+ public function test_image_prioritizer_register_tag_visitors ( Closure $ set_up , string $ buffer , string $ expected ): void {
841
841
$ set_up ();
842
842
843
843
$ remove_initial_tabs = static function ( string $ input ): string {
0 commit comments