Fix: Add classmap for Admin class to fix PHPUnit 7.0 autoloading
This commit is contained in:
@@ -14,18 +14,22 @@
|
|||||||
"php": ">=7.0"
|
"php": ">=7.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^6.5 || ^7.5 || ^8.0 || ^9.0",
|
"phpunit/phpunit": "^6.5",
|
||||||
"squizlabs/php_codesniffer": "^3.5",
|
|
||||||
"wp-coding-standards/wpcs": "^2.3",
|
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
|
|
||||||
"10up/wp_mock": "0.3.0",
|
"10up/wp_mock": "0.3.0",
|
||||||
"antecedent/patchwork": "^2.1.21"
|
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
||||||
|
"wp-coding-standards/wpcs": "^3.0",
|
||||||
|
"phpcompatibility/phpcompatibility-wp": "^2.1"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"WPALLSTARS\\PluginStarterTemplate\\": "includes/"
|
"WPALLSTARS\\PluginStarterTemplate\\": "includes/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"classmap": [
|
||||||
|
"includes/Admin/class-admin.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"phpcs": "phpcs --standard=WordPress",
|
"phpcs": "phpcs --standard=WordPress",
|
||||||
"phpcbf": "phpcbf --standard=WordPress",
|
"phpcbf": "phpcbf --standard=WordPress",
|
||||||
|
|||||||
Reference in New Issue
Block a user