Skip to content

Commit

Permalink
test(unit) restore bedrock test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Nov 24, 2023
1 parent 2f536b4 commit e32feb0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/lucatume/WPBrowser/Events/Module/WPLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ public function should_install_and_bootstrap_multisite_installation(): void
'akismet/akismet.php',
'hello-dolly/hello.php'
];
if(PHP_VERSION >= 7.4){
if (PHP_VERSION >= 7.4) {
$expectedActivePlugins[] = 'woocommerce/woocommerce.php';
}
Assert::assertEquals($expectedActivePlugins, array_keys(get_site_option('active_sitewide_plugins')));
Expand Down Expand Up @@ -1391,7 +1391,7 @@ public function should_correctly_activate_child_theme_in_single_installation():
],
'theme' => 'some-child-theme'
];
if(PHP_VERSION >= 7.4){
if (PHP_VERSION >= 7.4) {
// WooCommerce has a minimum PHP version of 7.4.0 required.
$this->config['plugins'][] = 'woocommerce/woocommerce.php';
}
Expand Down Expand Up @@ -1461,7 +1461,7 @@ public function should_correctly_activate_child_theme_in_multisite_installation(
'theme' => 'twentytwenty-child',
'multisite' => true,
];
if(PHP_VERSION >= 7.4){
if (PHP_VERSION >= 7.4) {
// WooCommerce has a minimum PHP version of 7.4.0 required.
$this->config['plugins'][] = 'woocommerce/woocommerce.php';
}
Expand Down Expand Up @@ -1804,7 +1804,9 @@ public function should_initialize_correctly_with_sqlite_database_in_load_only_mo
*/
public function should_correctly_load_the_module_on_a_bedrock_installation(): void
{
$this->markTestSkipped();
if (PHP_VERSION < 8.0) {
$this->markTestSkipped();
}
$wpRootDir = FS::tmpDir('wploader_');
$dbName = Random::dbName();
$dbHost = Env::get('WORDPRESS_DB_HOST');
Expand Down

0 comments on commit e32feb0

Please sign in to comment.