Crud\TestSuite\IntegrationTestCase::setUp PHP Method

setUp() public method

[setUp description]
public setUp ( ) : void
return void
    public function setUp()
    {
        parent::setUp();
        $this->resetReflectionCache();
        $this->_eventManager = EventManager::instance();
        $existing = Configure::read('App.paths.templates');
        $existing[] = Plugin::path('Crud') . 'tests/App/Template/';
        Configure::write('App.paths.templates', $existing);
        Configure::write('App.namespace', 'Crud\\Test\\App');
        Router::extensions('json');
        Router::connect('/:controller', ['action' => 'index'], ['routeClass' => 'DashedRoute']);
        Router::connect('/:controller/:action/*', [], ['routeClass' => 'DashedRoute']);
        $this->useHttpServer(false);
    }
IntegrationTestCase