Skip to content

Commit

Permalink
fix: add lowercase acceptance directory
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed Dec 16, 2023
1 parent d164a54 commit 637a9de
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/acceptance/ActivationCest.php
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');
}
}
18 changes: 18 additions & 0 deletions tests/acceptance/_bootstrap.php
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.
*/

0 comments on commit 637a9de

Please sign in to comment.