Skip to content
Snippets Groups Projects
Commit e29bda49 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(ajax): added nonce

parent 1fc35183
No related branches found
No related tags found
1 merge request!26feature(ajax): added nonce
Pipeline #166087 failed
This commit is part of merge request !26. Comments created here will be created in the context of that merge request.
paths:
tests: tests/codeception/tests
output: tests/codeception/tests/_output
data: tests/codeception/tests/_data
support: tests/codeception/tests/_support
envs: tests/codeception/tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
# - Codeception\Extension\Recorder:
# module: WPWebDriver
# delete_successful: false # keep screenshots of successful tests
commands:
- Codeception\Command\GenerateWPUnit
- Codeception\Command\GenerateWPRestApi
- Codeception\Command\GenerateWPRestController
- Codeception\Command\GenerateWPRestPostTypeController
- Codeception\Command\GenerateWPAjax
- Codeception\Command\GenerateWPCanonical
- Codeception\Command\GenerateWPXMLRPC
- WPDesk\Codeception\Command\GeneratePluginActivation
- WPDesk\Codeception\Command\GenerateWooCommerce
- tad\Codeception\Command\Steppify
params:
- .env.testing
coverage:
remote: false
include:
- classes
- src
......@@ -13,20 +13,25 @@
],
"config": {
"platform": {
"php": "7.0"
"php": "7.0.8"
},
"allow-plugins": {
"kylekatarnls/update-helper": true,
"wpdesk/wp-codeception": true
}
},
"require": {
"php": ">=7.0",
"php": ">=7.0.8",
"wpdesk/wp-builder": "^1.0|^2.0"
},
"require-dev": {
"phpunit/phpunit": "<7",
"phpunit/phpunit": "*",
"wp-coding-standards/wpcs": "^0.14.1",
"squizlabs/php_codesniffer": "^3.0.2",
"mockery/mockery": "*",
"10up/wp_mock": "*",
"wimg/php-compatibility": "^8"
"wimg/php-compatibility": "^8",
"wpdesk/wp-codeception": "^2.7"
},
"autoload": {
"psr-4": {"WPDesk\\Notice\\": "src/WPDesk/Notice/"},
......
paths:
tests: tests
output: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
*
!.gitignore
# Codeception Test Suite Configuration
#
# Suite for integration tests.
modules:
enabled:
- WPDb
- WPLoader
config:
WPDb:
dsn: 'mysql:host=%TEST_SITE_DB_HOST%;dbname=%TEST_SITE_DB_NAME%'
user: '%TEST_SITE_DB_USER%'
password: '%TEST_SITE_DB_PASSWORD%'
waitlock: 10
url: '%TEST_SITE_WP_URL%'
originalUrl: '%TEST_SITE_WP_URL%'
urlReplacement: true #replace the hardcoded dump URL with the one above
tablePrefix: '%TEST_SITE_TABLE_PREFIX%'
WPLoader:
multisite: false
wpRootFolder: '%WP_ROOT_FOLDER%'
dbName: "%TEST_SITE_DB_NAME%"
dbHost: "%TEST_SITE_DB_HOST%"
dbUser: "%TEST_SITE_DB_USER%"
dbPassword: "%TEST_SITE_DB_PASSWORD%"
isolatedInstall: true
loadOnly: true
tablePrefix: "%TEST_SITE_TABLE_PREFIX%"
plugins: []
activatePlugins: []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment