Skip to content
Snippets Groups Projects
Commit fdfee628 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(transients): as autoloaded options

parent ca538eac
No related branches found
No related tags found
1 merge request!42Feature/transients
Pipeline #213617 passed with warnings
This commit is part of merge request !42. Comments created here will be created in the context of that merge request.
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
WP_Mock::wpFunction( 'get_locale' ) WP_Mock::wpFunction( 'get_locale' )
->andReturn( $existing_locale ); ->andReturn( $existing_locale );
WP_Mock::wpFunction( 'wp_using_ext_object_cache')->andReturn( true );
$factory = new WPDesk_Basic_Requirement_Checker_Factory(); $factory = new WPDesk_Basic_Requirement_Checker_Factory();
$checker = $factory->create_from_requirement_array( 'whatever', 'whatever', $requirements ); $checker = $factory->create_from_requirement_array( 'whatever', 'whatever', $requirements );
...@@ -42,8 +44,6 @@ ...@@ -42,8 +44,6 @@
WP_Mock::passthruFunction( 'wp_create_nonce' ); WP_Mock::passthruFunction( 'wp_create_nonce' );
WP_Mock::passthruFunction( 'admin_url' ); WP_Mock::passthruFunction( 'admin_url' );
WP_Mock::wpFunction( 'wp_using_ext_object_cache')->andReturn( true );
$this->assertFalse( $checker->are_requirements_met(), '2 plugins required and there should be none activated' ); $this->assertFalse( $checker->are_requirements_met(), '2 plugins required and there should be none activated' );
$this->expectOutputRegex( '/Flexible Checkout Fields/' ); $this->expectOutputRegex( '/Flexible Checkout Fields/' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment