From 637a9de4889ce99a09b55386f7e5e20d2898e2a4 Mon Sep 17 00:00:00 2001 From: John Hooks Date: Fri, 15 Dec 2023 16:38:20 -0800 Subject: [PATCH] fix: add lowercase acceptance directory --- tests/acceptance/ActivationCest.php | 27 +++++++++++++++++++++++++++ tests/acceptance/_bootstrap.php | 18 ++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 tests/acceptance/ActivationCest.php create mode 100644 tests/acceptance/_bootstrap.php diff --git a/tests/acceptance/ActivationCest.php b/tests/acceptance/ActivationCest.php new file mode 100644 index 0000000..77839cd --- /dev/null +++ b/tests/acceptance/ActivationCest.php @@ -0,0 +1,27 @@ +loginAsAdmin(); + $I->amOnPluginsPage(); + + $I->seePluginActivated('indexed-search'); + + $I->deactivatePlugin('indexed-search'); + + $I->seePluginDeactivated('indexed-search'); + + $I->activatePlugin('indexed-search'); + + $I->seePluginActivated('indexed-search'); + } +} diff --git a/tests/acceptance/_bootstrap.php b/tests/acceptance/_bootstrap.php new file mode 100644 index 0000000..4d73b8c --- /dev/null +++ b/tests/acceptance/_bootstrap.php @@ -0,0 +1,18 @@ +` command + * to run WP-CLI commands on the WordPress site and database used by the Acceptance suite. + * E.g.: + * `vendor/bin/codecept wp:cli Acceptance db import tests/Support/Data/dump.sql` to load dump file. + * `vendor/bin/codecept wp:cli Acceptance plugin activate woocommerce` to activate the WooCommerce plugin. + * `vendor/bin/codecept wp:cli Acceptance user create alice alice@example.com --role=administrator` to create a new user. + * `vendor/bin/codecept wp:cli Acceptance db export tests/Support/Data/dump.sql` to update the dump file. + */