Skip to content

Commit 4beb456

Browse files
Connectors: Drop obsolete is_active-missing test case
The connector registry now defaults plugin.is_active to __return_true when omitted, so the "is_active missing" scenario can't reach _wp_register_default_connector_settings(). The remaining returns_true / returns_false tests cover the gate's actual branches.
1 parent 33f9834 commit 4beb456

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

tests/phpunit/tests/connectors/wpRegisterDefaultConnectorSettings.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,6 @@ public function tear_down(): void {
4343
parent::tear_down();
4444
}
4545

46-
/**
47-
* @ticket 65099
48-
*/
49-
public function test_non_ai_connector_skipped_when_is_active_missing(): void {
50-
WP_Connector_Registry::get_instance()->register(
51-
self::CONNECTOR_ID,
52-
array(
53-
'name' => 'Test Non-AI Connector',
54-
'description' => '',
55-
'type' => 'spam_filtering',
56-
'authentication' => array(
57-
'method' => 'api_key',
58-
'setting_name' => self::SETTING_NAME,
59-
),
60-
)
61-
);
62-
63-
_wp_register_default_connector_settings();
64-
65-
$this->assertArrayNotHasKey( self::SETTING_NAME, get_registered_settings() );
66-
}
67-
6846
/**
6947
* @ticket 65099
7048
*/

0 commit comments

Comments
 (0)