We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d06dc commit 2add133Copy full SHA for 2add133
plugins/image-prioritizer/tests/test-hooks.php
@@ -0,0 +1,18 @@
1
+<?php
2
+/**
3
+ * Tests for image-prioritizer plugin hooks.php.
4
+ *
5
+ * @package image-prioritizer
6
+ */
7
+
8
+class Test_Image_Prioritizer_Hooks extends WP_UnitTestCase {
9
10
+ /**
11
+ * Make sure the hooks are added in hooks.php.
12
13
+ public function test_hooks_added(): void {
14
+ $this->assertEquals( 10, has_action( 'od_init', 'image_prioritizer_init' ) );
15
+ $this->assertEquals( 10, has_filter( 'od_extension_module_urls', 'image_prioritizer_filter_extension_module_urls' ) );
16
+ $this->assertEquals( 10, has_filter( 'od_url_metric_schema_root_additional_properties', 'image_prioritizer_add_element_item_schema_properties' ) );
17
+ }
18
+}
0 commit comments