From e76d9893ac245017bbd46f41a0012b1488b22454 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Thu, 21 Nov 2024 15:50:53 -0700 Subject: [PATCH] Remove test that isn't needed --- .../Providers/Azure/ComputerVisionTest.php | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/tests/Classifai/Providers/Azure/ComputerVisionTest.php b/tests/Classifai/Providers/Azure/ComputerVisionTest.php index e20a2e9c9..d08eba908 100644 --- a/tests/Classifai/Providers/Azure/ComputerVisionTest.php +++ b/tests/Classifai/Providers/Azure/ComputerVisionTest.php @@ -60,40 +60,6 @@ public function test_smart_crop_image() { remove_filter( 'classifai_should_smart_crop_image', '__return_true' ); } - /** - * Ensure that settings returns default settings array if the `classifai_computer_vision` is not set. - */ - public function test_no_computer_vision_option_set() { - delete_option( 'classifai_computer_vision' ); - - $defaults = []; - - $expected = array_merge( - $defaults, - [ - 'status' => '0', - 'roles' => [], - 'users' => [], - 'user_based_opt_out' => 'no', - 'descriptive_text_fields' => [ - 'alt' => 'alt', - 'caption' => 0, - 'description' => 0, - ], - 'provider' => 'ms_computer_vision', - 'ms_computer_vision' => [ - 'endpoint_url' => '', - 'api_key' => '', - 'authenticated' => false, - 'descriptive_confidence_threshold' => 55, - ], - ] - ); - $settings = ( new \Classifai\Features\DescriptiveTextGenerator() )->get_settings(); - - $this->assertSame( $expected, $settings ); - } - /** * Ensure that attachment meta is being set. */