|
13 | 13 | // Load mock Abilities API functions before loading the class. |
14 | 14 | require_once __DIR__ . '/abilities-api-mocks.php'; |
15 | 15 |
|
16 | | -// Load ACF internal post type class to register the taxonomy instance. |
| 16 | +// Load ACF internal post type classes. |
| 17 | +require_once dirname( __DIR__, 4 ) . '/includes/post-types/class-acf-post-type.php'; |
17 | 18 | require_once dirname( __DIR__, 4 ) . '/includes/post-types/class-acf-taxonomy.php'; |
| 19 | +require_once dirname( __DIR__, 4 ) . '/includes/post-types/class-acf-ui-options-page.php'; |
18 | 20 |
|
19 | 21 | // Load the abilities classes after ACF classes are loaded. |
20 | 22 | require_once dirname( __DIR__, 4 ) . '/includes/abilities/class-scf-internal-post-type-abilities.php'; |
| 23 | +require_once dirname( __DIR__, 4 ) . '/includes/abilities/class-scf-post-type-abilities.php'; |
21 | 24 | require_once dirname( __DIR__, 4 ) . '/includes/abilities/class-scf-taxonomy-abilities.php'; |
| 25 | +require_once dirname( __DIR__, 4 ) . '/includes/abilities/class-scf-ui-options-page-abilities.php'; |
22 | 26 |
|
23 | 27 | /** |
24 | 28 | * Tests for SCF_Internal_Post_Type_Abilities base class |
@@ -1006,4 +1010,26 @@ public function test_list_callback_success() { |
1006 | 1010 | $this->assertIsArray( $result ); |
1007 | 1011 | $this->assertCount( 2, $result ); |
1008 | 1012 | } |
| 1013 | + |
| 1014 | + /** |
| 1015 | + * Test UI Options Page abilities class instantiates correctly. |
| 1016 | + * |
| 1017 | + * Ensures coverage for the UI Options Page abilities class which |
| 1018 | + * extends the base class with minimal customization. |
| 1019 | + */ |
| 1020 | + public function test_ui_options_page_abilities_instantiates() { |
| 1021 | + $abilities = new SCF_UI_Options_Page_Abilities(); |
| 1022 | + $this->assertInstanceOf( SCF_Internal_Post_Type_Abilities::class, $abilities ); |
| 1023 | + } |
| 1024 | + |
| 1025 | + /** |
| 1026 | + * Test Post Type abilities class instantiates correctly. |
| 1027 | + * |
| 1028 | + * Ensures coverage for the Post Type abilities class which |
| 1029 | + * extends the base class with minimal customization. |
| 1030 | + */ |
| 1031 | + public function test_post_type_abilities_instantiates() { |
| 1032 | + $abilities = new SCF_Post_Type_Abilities(); |
| 1033 | + $this->assertInstanceOf( SCF_Internal_Post_Type_Abilities::class, $abilities ); |
| 1034 | + } |
1009 | 1035 | } |
0 commit comments