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
1 merge request!42Feature/transients
Pipeline #213617 passed with warnings with stages
in 43 seconds
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
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.
Finish editing this message first!
Please register or to comment