-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add lowercase acceptance directory
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Tests\Acceptance; | ||
|
||
use Tests\Support\AcceptanceTester; | ||
|
||
class ActivationCest | ||
{ | ||
/** | ||
* @group plugin | ||
*/ | ||
public function test_it_deactivates_activates_correctly(AcceptanceTester $I): void | ||
{ | ||
$I->loginAsAdmin(); | ||
$I->amOnPluginsPage(); | ||
|
||
$I->seePluginActivated('indexed-search'); | ||
|
||
$I->deactivatePlugin('indexed-search'); | ||
|
||
$I->seePluginDeactivated('indexed-search'); | ||
|
||
$I->activatePlugin('indexed-search'); | ||
|
||
$I->seePluginActivated('indexed-search'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/* | ||
* Acceptance suite bootstrap file. | ||
* | ||
* This file is loaded AFTER the suite modules are initialized and WordPress has been loaded by the WPLoader module. | ||
* | ||
* The initial state of the WordPress site is the one set up by the dump file(s) loaded by the WPDb module, look for the | ||
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli Acceptance <wp-cli command>` 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 [email protected] --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. | ||
*/ |