\MockTranslatableController
Mock controller used for functional testing.
- Author: Janne Klouman <janne@klouman.com>
Synopsis
class MockTranslatableController
extends Controller
implements
TranslatableController
{
- // constants
- const TEST_INDEX_RETURN = 'index';
- const TEST_ONE_RETURN = 1;
- // members
- private static array $allowed_actions = ;
- // methods
- public array getValidUrlSegments()
- public array getValidUrlHandlers()
- public string index()
- public mixed number()
- public int one()
Hierarchy
Constants
Name | Value |
---|---|
TEST_INDEX_RETURN | 'index' |
TEST_ONE_RETURN | 1 |
Members
private
- $allowed_actions — array
Methods
public
- getValidUrlHandlers()
- getValidUrlSegments()
- index() — Returns the string "index".
- number() — Returns a number passed in the url.
- one() — Returns the number one.