feature(ajax): added nonce
parent
d19bb1dd
No related branches found
No related tags found
Showing
- .env.testing 19 additions, 0 deletions.env.testing
- .gitlab-ci.yml 0 additions, 1 deletion.gitlab-ci.yml
- CHANGELOG.md 4 additions, 2 deletionsCHANGELOG.md
- assets/js/notice.js 5 additions, 2 deletionsassets/js/notice.js
- assets/js/notice.min.js 0 additions, 1 deletionassets/js/notice.min.js
- codeception.dist.yml 31 additions, 0 deletionscodeception.dist.yml
- composer.json 8 additions, 4 deletionscomposer.json
- src/WPDesk/Notice/AjaxHandler.php 34 additions, 31 deletionssrc/WPDesk/Notice/AjaxHandler.php
- src/WPDesk/Notice/PermanentDismissibleNotice.php 8 additions, 0 deletionssrc/WPDesk/Notice/PermanentDismissibleNotice.php
- src/WPDesk/Notice/views/admin-head-js.php 1 addition, 1 deletionsrc/WPDesk/Notice/views/admin-head-js.php
- tests/codeception/codeception.yml 11 additions, 0 deletionstests/codeception/codeception.yml
- tests/codeception/tests/_data/.gitkeep 0 additions, 0 deletionstests/codeception/tests/_data/.gitkeep
- tests/codeception/tests/_output/.gitignore 2 additions, 0 deletionstests/codeception/tests/_output/.gitignore
- tests/codeception/tests/acceptance/.gitkeep 0 additions, 0 deletionstests/codeception/tests/acceptance/.gitkeep
- tests/codeception/tests/functional/.gitkeep 0 additions, 0 deletionstests/codeception/tests/functional/.gitkeep
- tests/codeception/tests/integration.suite.yml 37 additions, 0 deletionstests/codeception/tests/integration.suite.yml
- tests/codeception/tests/integration/AjaxHandlerTest.php 106 additions, 0 deletionstests/codeception/tests/integration/AjaxHandlerTest.php
- tests/codeception/tests/integration/FunctionsTest.php 119 additions, 0 deletionstests/codeception/tests/integration/FunctionsTest.php
- tests/codeception/tests/integration/NoticeTest.php 144 additions, 0 deletionstests/codeception/tests/integration/NoticeTest.php
- tests/codeception/tests/integration/PermanentDismissinleNoticeTest.php 72 additions, 0 deletions...tion/tests/integration/PermanentDismissinleNoticeTest.php
.env.testing
0 → 100644
assets/js/notice.min.js
deleted
100644 → 0
codeception.dist.yml
0 → 100644
... | @@ -13,20 +13,24 @@ | ... | @@ -13,20 +13,24 @@ |
], | ], | ||
"config": { | "config": { | ||
"platform": { | "platform": { | ||
"php": "7.0" | "php": "7.0.8" | ||
}, | |||
"allow-plugins": { | |||
"kylekatarnls/update-helper": true, | |||
"wpdesk/wp-codeception": true | |||
} | } | ||
}, | }, | ||
"require": { | "require": { | ||
"php": ">=5.5", | "php": ">=7.0.8", | ||
"wpdesk/wp-builder": "^1.0|^2.0" | "wpdesk/wp-builder": "^1.0|^2.0" | ||
}, | }, | ||
"require-dev": { | "require-dev": { | ||
"phpunit/phpunit": "<7", | |||
"wp-coding-standards/wpcs": "^0.14.1", | "wp-coding-standards/wpcs": "^0.14.1", | ||
"squizlabs/php_codesniffer": "^3.0.2", | "squizlabs/php_codesniffer": "^3.0.2", | ||
"mockery/mockery": "*", | "mockery/mockery": "*", | ||
"10up/wp_mock": "*", | "10up/wp_mock": "*", | ||
"wimg/php-compatibility": "^8" | "wimg/php-compatibility": "^8", | ||
"wpdesk/wp-codeception": "^2.7" | |||
}, | }, | ||
"autoload": { | "autoload": { | ||
"psr-4": {"WPDesk\\Notice\\": "src/WPDesk/Notice/"}, | "psr-4": {"WPDesk\\Notice\\": "src/WPDesk/Notice/"}, | ||
... | ... |
tests/codeception/codeception.yml
0 → 100644
tests/codeception/tests/_data/.gitkeep
0 → 100644
tests/codeception/tests/_output/.gitignore
0 → 100644
tests/codeception/tests/acceptance/.gitkeep
0 → 100644
tests/codeception/tests/functional/.gitkeep
0 → 100644
Please register or sign in to comment