Skip to content
Merged
7 changes: 7 additions & 0 deletions behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
default:
suites:
default:
contexts:
- WP_CLI\Tests\Context\FeatureContext
paths:
- features
29 changes: 26 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wp-cli/restful",
"description": "Unlock the potential of the WP REST API at the command line.",
"type": "wp-cli-package",
"type": "wp-cli-package",
"license": "MIT",
"authors": [
{
Expand All @@ -15,10 +15,10 @@
"files": [ "wp-rest-cli.php" ]
},
"require": {
"wp-cli/wp-cli": "*"
"wp-cli/wp-cli": "^2.12"
},
"require-dev": {
"behat/behat": "~3.15"
"wp-cli/wp-cli-tests": "^5.0"
},
"extra": {
"branch-alias": {
Expand All @@ -35,5 +35,28 @@
"body": "bin/readme-stubs/installing.md"
}
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
}
},
"scripts": {
"behat": "run-behat-tests",
"behat-rerun": "rerun-behat-tests",
"lint": "run-linter-tests",
"phpcs": "run-phpcs-tests",
"phpcbf": "run-phpcbf-cleanup",
"phpstan": "run-phpstan-tests",
"phpunit": "run-php-unit-tests",
"prepare-tests": "install-package-tests",
"test": [
"@lint",
"@phpcs",
"@phpstan",
"@phpunit",
"@behat"
]
}
}
324 changes: 0 additions & 324 deletions features/bootstrap/FeatureContext.php

This file was deleted.

Loading
Loading