- Renames router URL query parameter and router class
- Updates other classes to use the new name - Updates unit tests
This commit is contained in:
19
tests/unit/Router/RouterTestMockEndpoint.php
Normal file
19
tests/unit/Router/RouterTestMockEndpoint.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\Router\Endpoints;
|
||||
|
||||
class MockEndpoint {
|
||||
const ACTION_TEST = 'test';
|
||||
public $allowed_actions = array(
|
||||
self::ACTION_TEST
|
||||
);
|
||||
public $data;
|
||||
|
||||
function __construct($data) {
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
function test() {
|
||||
return $this->data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user