Files
piratepoet/tests/unit/API/JSON/APITestNamespacedEndpointStubV2.php

19 lines
369 B
PHP

<?php
namespace MailPoet\API\JSON\v2;
use MailPoet\API\JSON\Access as APIAccess;
use MailPoet\API\JSON\Endpoint as APIEndpoint;
if(!defined('ABSPATH')) exit;
class APITestNamespacedEndpointStubV2 extends APIEndpoint {
public $permissions = array(
'testVersion' => APIAccess::ALL
);
function testVersion() {
return $this->successResponse('v2');
}
}