Skip to content

Commit 0da4a99

Browse files
committed
Try reconfiguring WP Browser
1 parent 212fb0c commit 0da4a99

File tree

5 files changed

+23
-34
lines changed

5 files changed

+23
-34
lines changed

.env

Lines changed: 0 additions & 17 deletions
This file was deleted.

codeception.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ extensions:
1818
- Codeception\Command\GenerateWPXMLRPC
1919
- Codeception\Command\DbSnapshot
2020
- tad\Codeception\Command\SearchReplace
21-
params:
22-
- .env

tests/acceptance.suite.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Perform tests in browser using the WPWebDriver or WPBrowser.
55
# Use WPDb to set up your initial database fixture.
66
# If you need both WPWebDriver and WPBrowser tests - create a separate suite.
7-
87
actor: AcceptanceTester
98
modules:
109
enabled:
@@ -13,13 +12,13 @@ modules:
1312
- \Helper\Acceptance
1413
config:
1514
WPDb:
16-
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
17-
user: '%DB_USER%'
18-
password: '%DB_PASSWORD%'
19-
url: '%WP_URL%'
20-
tablePrefix: '%TABLE_PREFIX%'
15+
dsn: 'mysql:host=127.0.0.1;dbname=wordpress'
16+
user: 'admin'
17+
password: 'password'
18+
url: 'http://wp-php-console.test'
19+
tablePrefix: 'wp_'
2120
WPBrowser:
22-
url: '%WP_URL%'
23-
adminUsername: '%ADMIN_USERNAME%'
24-
adminPassword: '%ADMIN_PASSWORD%'
25-
adminPath: '%WP_ADMIN_PATH%'
21+
url: 'http://wp-php-console.test'
22+
adminUsername: 'admin'
23+
adminPassword: 'password'
24+
adminPath: '/wordpress'

tests/acceptance/AdminTestCept.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/acceptance/AdminTestCest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
class AdminTestCest {
4+
5+
6+
public function TestPluginsPage( AcceptanceTester $I ) {
7+
8+
$I->wantTo( 'See if WP PHP Console is listed in Plugins page' );
9+
$I->amOnPluginsPage();
10+
$I->seePluginActivated( 'wp-php-console' );
11+
}
12+
13+
14+
}

0 commit comments

Comments
 (0)