Adds access control tests for Router

This commit is contained in:
Vlad
2017-08-22 21:16:38 -04:00
parent 78429d8f91
commit e47c8bc701
3 changed files with 105 additions and 8 deletions

View File

@@ -2,12 +2,17 @@
namespace MailPoet\Router\Endpoints;
use MailPoet\Config\AccessControl;
class RouterTestMockEndpoint {
const ACTION_TEST = 'test';
public $allowed_actions = array(
self::ACTION_TEST
);
public $data;
public $permissions = array(
'global' => AccessControl::NO_ACCESS_RESTRICTION
);
function __construct($data) {
$this->data = $data;