File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
tests/phpunit/tests/connectors Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ public function test_register_returns_connector_data() {
6262 * @ticket 64791
6363 */
6464 public function test_register_generates_setting_name_for_api_key () {
65- $ result = $ this ->registry ->register ( 'myai ' , self ::$ default_args );
65+ $ args = self ::$ default_args ;
66+ unset( $ args ['authentication ' ]['setting_name ' ] );
67+
68+ $ result = $ this ->registry ->register ( 'myai ' , $ args );
6669
6770 $ this ->assertSame ( 'connectors_ai_provider_myai_api_key ' , $ result ['authentication ' ]['setting_name ' ] );
6871 }
@@ -71,7 +74,10 @@ public function test_register_generates_setting_name_for_api_key() {
7174 * @ticket 64861
7275 */
7376 public function test_register_generates_setting_name_normalizes_hyphens () {
74- $ result = $ this ->registry ->register ( 'my-ai ' , self ::$ default_args );
77+ $ args = self ::$ default_args ;
78+ unset( $ args ['authentication ' ]['setting_name ' ] );
79+
80+ $ result = $ this ->registry ->register ( 'my-ai ' , $ args );
7581
7682 $ this ->assertSame ( 'connectors_ai_provider_my_ai_api_key ' , $ result ['authentication ' ]['setting_name ' ] );
7783 }
You can’t perform that action at this time.
0 commit comments