Skip to content

Commit

Permalink
tests: Adjusted tests for isAIfetureActive
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Sep 12, 2024
1 parent 54b0812 commit aa8c112
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public function test_legacy_site_information() {
],
'pluginUrl' => '/location',
'wistiaEmbedPermission' => true,
'isAiFeatureActive' => null,

];

Expand Down Expand Up @@ -191,7 +192,7 @@ public function test_site_information() {
'isRtl' => false,
'isPremium' => true,
'siteIconUrl' => 'https://example.org',

'isAiFeatureActive' => null,
];

Monkey\Functions\expect( 'admin_url' )->andReturn( 'https://example.org' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public function test_site_information() {
'isRtl' => false,
'isPremium' => true,
'siteIconUrl' => 'https://example.org',
'isAiFeatureActive' => null,
];

Monkey\Functions\expect( 'admin_url' )->andReturn( 'https://example.org' );
Expand Down Expand Up @@ -168,7 +169,7 @@ public function test_legacy_site_information() {
],
'pluginUrl' => '/location',
'wistiaEmbedPermission' => true,

'isAiFeatureActive' => null,
];

Monkey\Functions\expect( 'admin_url' )->andReturn( 'https://example.org' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function test_legacy_site_information() {
'linkParams' => $this->short_link_helper->get_query_params(),
'pluginUrl' => 'http://example.org/wp-content/plugins/wordpress-seo',
'wistiaEmbedPermission' => true,
'isAiFeatureActive' => true,
];

$this->assertSame( $expected, $this->instance->get_legacy_site_information() );
Expand Down Expand Up @@ -160,7 +161,7 @@ public function test_site_information() {
'isRtl' => false,
'isPremium' => false,
'siteIconUrl' => '',

'isAiFeatureActive' => true,
];

$this->assertSame( $expected, $this->instance->get_site_information() );
Expand Down

0 comments on commit aa8c112

Please sign in to comment.