added unit test for API::checkPermissions

This commit is contained in:
Jonathan Labreuille
2016-10-21 13:36:23 +02:00
parent ee89bf0722
commit 202e4b90e1
2 changed files with 41 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class API {
'wp_ajax_mailpoet',
array($this, 'setupAjax')
);
// ajax (logged out users)
add_action(
'wp_ajax_nopriv_mailpoet',