forked from 10up/ElasticPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwpacceptance.json
39 lines (35 loc) · 1.46 KB
/
wpacceptance.json
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
{
"name": "elasticpress",
"tests": [
"./tests/wpa/*Test.php",
"./tests/wpa/**/*Test.php",
"./tests/wpa/after-test/*.php"
],
"bootstrap": "./tests/wpa/bootstrap.php",
"exclude": [
"./node_modules"
],
"enforce_clean_db": false,
"environment_instructions": [
[
"install wordpress where type is multisite and url is http://elasticpress.test",
"install theme where name is twentytwenty",
"install plugin where name is debug-bar and status is network active",
"install plugin where name is debug-bar-elasticpress and status is network active",
"install plugin where name is wordpress-importer and status is network active",
"install plugin where name is woocommerce"
]
],
"project_path": "%WP_ROOT%/wp-content/plugins/elasticpress",
"before_scripts" : [
"mv tests/wpa/test-plugins/* ../",
"mkdir -p ../../mu-plugins/ && mv tests/wpa/test-mu-plugins/* ../../mu-plugins/",
"wp --allow-root user create wpsnapshots [email protected] --role=administrator --user_pass=password",
"wp --allow-root super-admin add wpsnapshots",
"mv tests/wpa/test-docs/content-example.xml /var/www/html",
"wp --allow-root import /var/www/html/content-example.xml --authors=create",
"wp --allow-root plugin activate elasticpress",
"wp --allow-root elasticpress index --setup --show-errors",
"wp --allow-root plugin deactivate woocommerce"
]
}