Skip to content

Commit

Permalink
remove dead code from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Sep 9, 2024
1 parent 1a82d2b commit 6b4d99a
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use WPSEO_Admin_Asset_Manager;
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
use Yoast\WP\SEO\Helpers\Options_Helper;
use Yoast\WP\SEO\Helpers\Url_Helper;
use Yoast\WP\SEO\Helpers\Woocommerce_Helper;
use Yoast\WP\SEO\Integrations\Admin\Integrations_Page;
use Yoast\WP\SEO\Tests\Unit\TestCase;
Expand Down Expand Up @@ -120,17 +119,6 @@ public function test_enqueue_assets() {
Monkey\Functions\expect( 'get_site_url' )
->andReturn( 'https://www.example.com' );

$url_helper = Mockery::mock( Url_Helper::class );
$url_helper->expects()->get_url_host( 'https://www.example.com' )->andReturn( 'https://www.example.com' );
$container = $this->create_container_with(
[
Url_Helper::class => $url_helper,
]
);

Monkey\Functions\expect( 'YoastSEO' )
->andReturn( (object) [ 'helpers' => $this->create_helper_surface( $container ) ] );

Monkey\Functions\expect( 'is_plugin_active' )->times( 5 )->andReturnTrue();
Monkey\Functions\expect( 'wp_nonce_url' )->times( 3 )->andReturn( 'nonce' );
Monkey\Functions\expect( 'self_admin_url' )->times( 3 )->andReturn( 'https://www.example.com' );
Expand Down

0 comments on commit 6b4d99a

Please sign in to comment.