Skip to content

Commit 92d91e5

Browse files
committed
log in as admin
1 parent 20b044e commit 92d91e5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/acceptance/AdminTestCest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ public function TestPluginActivationDeactivation( AcceptanceTester $I ) {
77

88
$I->wantTo( 'See if WP PHP Console is listed in the Plugins page.' );
99

10+
$I->loginAsAdmin();
1011
$I->amOnPluginsPage();
1112

12-
$I->seePluginActivated( 'hello-dolly' );
13-
14-
$I->seePluginDeactivated( 'wp-php-console' );
13+
$I->seePluginInstalled( 'wp-php-console' );
1514

1615
$I->wantTo( 'Deactivate and reactivate WP PHP Console.' );
1716

18-
//$I->deactivatePlugin( 'wp-php-console' );
17+
$I->deactivatePlugin( 'wp-php-console' );
18+
$I->seePluginDeactivated( 'wp-php-console' );
1919
$I->activatePlugin( 'wp-php-console' );
20+
$I->seePluginActivated( 'wp-php-console' );
2021
}
2122

2223

0 commit comments

Comments
 (0)