functional.suite.yml
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Codeception Test Suite Configuration
#
# Suite for functional tests
# Emulate web requests and make WordPress process them
actor: FunctionalTester
modules:
enabled:
- WPDb
- WPBrowser
# - WPFilesystem
- Asserts
- \Helper\Functional
config:
WPDb:
dsn: '%TEST_SITE_DB_DSN%'
user: '%TEST_SITE_DB_USER%'
password: '%TEST_SITE_DB_PASSWORD%'
dump: 'tests/_data/dump.sql'
populate: true
cleanup: true
waitlock: 10
url: '%TEST_SITE_WP_URL%'
urlReplacement: true
tablePrefix: '%TEST_SITE_TABLE_PREFIX%'
WPBrowser:
url: '%TEST_SITE_WP_URL%'
adminUsername: '%TEST_SITE_ADMIN_USERNAME%'
adminPassword: '%TEST_SITE_ADMIN_PASSWORD%'
adminPath: '%TEST_SITE_WP_ADMIN_PATH%'
headers:
X_TEST_REQUEST: 1
X_WPBROWSER_REQUEST: 1
WPFilesystem:
wpRootFolder: '%WP_ROOT_FOLDER%'
plugins: '/wp-content/plugins'
mu-plugins: '/wp-content/mu-plugins'
themes: '/wp-content/themes'
uploads: '/wp-content/uploads'