Skip to content

Commit cbea9f1

Browse files
committed
Write test case
1 parent d11c3f5 commit cbea9f1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/acceptance.suite.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ modules:
88
url: 'http://wp-php-console.test'
99
adminUsername: 'admin'
1010
adminPassword: 'password'
11-
adminPath: '/wordpress'

tests/acceptance/AdminTestCest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
class AdminTestCest {
44

55

6-
public function TestPluginsPage( AcceptanceTester $I ) {
6+
public function TestPluginActivationDeactivation( AcceptanceTester $I ) {
77

88
$I->wantTo( 'See if WP PHP Console is listed in Plugins page' );
9+
910
$I->amOnPluginsPage();
11+
1012
$I->seePluginActivated( 'wp-php-console' );
13+
14+
$I->deactivatePlugin( 'wp-php-console' );
15+
$I->activatePlugin( 'wp-php-console' );
1116
}
1217

1318

0 commit comments

Comments
 (0)