Skip to content

Commit

Permalink
Remove test that isn't needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Nov 21, 2024
1 parent 02fc829 commit e76d989
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions tests/Classifai/Providers/Azure/ComputerVisionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit e76d989

Please sign in to comment.