2019-07-17 20:02:41 -04:00
|
|
|
paths:
|
2021-01-21 20:55:37 -05:00
|
|
|
tests: tests
|
|
|
|
|
output: tests/_output
|
|
|
|
|
data: tests/_data
|
|
|
|
|
support: tests/_support
|
|
|
|
|
envs: tests/_envs
|
2019-07-17 20:02:41 -04:00
|
|
|
params:
|
2021-01-21 20:55:37 -05:00
|
|
|
- env
|
2019-07-17 20:02:41 -04:00
|
|
|
actor_suffix: Tester
|
|
|
|
|
settings:
|
2021-01-21 20:55:37 -05:00
|
|
|
colors: true
|
|
|
|
|
memory_limit: 1024M
|
2019-07-17 20:02:41 -04:00
|
|
|
coverage:
|
2021-01-21 20:55:37 -05:00
|
|
|
enabled: true
|
2026-03-26 17:20:55 -04:00
|
|
|
c3_url: '%WORDPRESS_URL%/wp-content/plugins/wp-graphql-woocommerce/wp-graphql-woocommerce.php'
|
2026-03-26 21:58:13 -04:00
|
|
|
work_dir: /var/www/html/wp-content/plugins/wp-graphql-woocommerce/
|
2021-01-21 20:55:37 -05:00
|
|
|
include:
|
2026-03-27 16:32:30 -04:00
|
|
|
- './includes/*'
|
|
|
|
|
- './access-functions.php'
|
2021-01-21 20:55:37 -05:00
|
|
|
exclude:
|
2026-03-27 16:32:30 -04:00
|
|
|
- './local/*'
|
|
|
|
|
- './vendor/*'
|
|
|
|
|
- './wp-graphql-woocommerce.php'
|
2021-01-21 20:55:37 -05:00
|
|
|
show_only_summary: false
|
2019-07-17 20:02:41 -04:00
|
|
|
extensions:
|
2021-01-21 20:55:37 -05:00
|
|
|
enabled:
|
|
|
|
|
- Codeception\Extension\RunFailed
|
|
|
|
|
commands:
|
|
|
|
|
- Codeception\Command\GenerateWPUnit
|
|
|
|
|
- Codeception\Command\GenerateWPRestApi
|
|
|
|
|
- Codeception\Command\GenerateWPRestController
|
|
|
|
|
- Codeception\Command\GenerateWPRestPostTypeController
|
|
|
|
|
- Codeception\Command\GenerateWPAjax
|
|
|
|
|
- Codeception\Command\GenerateWPCanonical
|
|
|
|
|
- Codeception\Command\GenerateWPXMLRPC
|
2019-07-17 20:02:41 -04:00
|
|
|
modules:
|
2021-01-21 20:55:37 -05:00
|
|
|
config:
|
2024-05-21 00:48:16 -04:00
|
|
|
\Tests\WPGraphQL\Codeception\Module\WPGraphQL:
|
|
|
|
|
endpoint: '%WORDPRESS_URL%/graphql'
|
2025-11-15 19:02:41 -05:00
|
|
|
modules:
|
|
|
|
|
WPCLI:
|
|
|
|
|
path: '%WP_ROOT_FOLDER%'
|
|
|
|
|
allow-root: true
|
|
|
|
|
throw: true
|
2021-01-21 20:55:37 -05:00
|
|
|
WPDb:
|
|
|
|
|
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
|
|
|
|
|
user: '%DB_USER%'
|
|
|
|
|
password: '%DB_PASSWORD%'
|
2024-05-21 00:48:16 -04:00
|
|
|
populator: 'mysql -u $user -p$password -h $host $dbname < $dump'
|
2021-01-21 20:55:37 -05:00
|
|
|
dump: 'local/db/app_db.sql'
|
2025-11-15 19:02:41 -05:00
|
|
|
populate: false
|
2026-03-30 21:42:00 -04:00
|
|
|
cleanup: false
|
2025-11-15 19:02:41 -05:00
|
|
|
waitlock: 0
|
2021-01-21 20:55:37 -05:00
|
|
|
url: '%WORDPRESS_URL%'
|
|
|
|
|
urlReplacement: true
|
|
|
|
|
tablePrefix: '%WP_TABLE_PREFIX%'
|
|
|
|
|
WPBrowser:
|
|
|
|
|
url: '%WORDPRESS_URL%'
|
2025-11-15 19:02:41 -05:00
|
|
|
wpRootFolder: '%WP_ROOT_FOLDER%'
|
2021-01-21 20:55:37 -05:00
|
|
|
adminUsername: '%ADMIN_USERNAME%'
|
|
|
|
|
adminPassword: '%ADMIN_PASSWORD%'
|
|
|
|
|
adminPath: '/wp-admin'
|
|
|
|
|
REST:
|
|
|
|
|
depends: WPBrowser
|
|
|
|
|
url: '%WORDPRESS_URL%'
|
2023-05-22 13:43:10 -04:00
|
|
|
cookies: false
|
2021-01-21 20:55:37 -05:00
|
|
|
WPFilesystem:
|
2025-11-15 19:02:41 -05:00
|
|
|
wpRootFolder: '%WP_ROOT_FOLDER%'
|
2021-01-21 20:55:37 -05:00
|
|
|
plugins: '/wp-content/plugins'
|
|
|
|
|
mu-plugins: '/wp-content/mu-plugins'
|
|
|
|
|
themes: '/wp-content/themes'
|
|
|
|
|
uploads: '/wp-content/uploads'
|
|
|
|
|
WPLoader:
|
2025-11-15 19:02:41 -05:00
|
|
|
wpRootFolder: '%WP_ROOT_FOLDER%'
|
2024-08-06 16:54:18 -06:00
|
|
|
dbHost: '%DB_HOST%'
|
2024-08-07 12:39:45 -04:00
|
|
|
dbName: '%DB_NAME%'
|
2024-08-06 16:54:18 -06:00
|
|
|
dbUser: '%DB_USER%'
|
|
|
|
|
dbPassword: '%DB_PASSWORD%'
|
2024-08-07 12:39:45 -04:00
|
|
|
dbUrl: 'mysql://%DB_USER%:%DB_PASSWORD%@%DB_HOST%:%DB_PORT%/%DB_NAME%'
|
2021-01-21 20:55:37 -05:00
|
|
|
tablePrefix: '%WP_TABLE_PREFIX%'
|
|
|
|
|
domain: '%WORDPRESS_DOMAIN%'
|
|
|
|
|
adminEmail: '%ADMIN_EMAIL%'
|
|
|
|
|
title: 'WooGraphQL Tests'
|
|
|
|
|
plugins:
|
|
|
|
|
- woocommerce/woocommerce.php
|
|
|
|
|
- woocommerce-gateway-stripe/woocommerce-gateway-stripe.php
|
|
|
|
|
- wp-graphql/wp-graphql.php
|
|
|
|
|
- wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php
|
|
|
|
|
- wp-graphql-woocommerce/wp-graphql-woocommerce.php
|
|
|
|
|
activatePlugins:
|
|
|
|
|
- woocommerce/woocommerce.php
|
|
|
|
|
- woocommerce-gateway-stripe/woocommerce-gateway-stripe.php
|
|
|
|
|
- wp-graphql/wp-graphql.php
|
|
|
|
|
- wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php
|
|
|
|
|
- wp-graphql-woocommerce/wp-graphql-woocommerce.php
|
|
|
|
|
configFile: 'tests/_data/config.php'
|
2026-03-26 17:20:55 -04:00
|
|
|
dump: 'local/db/app_db.sql'
|
2024-05-21 00:48:16 -04:00
|
|
|
|
|
|
|
|
|