public function testUnroutables() { Test_EngineBlock_Router_AssertionBuilder::create($this)->routerClass('EngineBlock_Router_OpenSocial')->uri('')->notRoutable()->test(); Test_EngineBlock_Router_AssertionBuilder::create($this)->routerClass('EngineBlock_Router_OpenSocial')->uri('/')->notRoutable()->test(); $this->_testRoute('EngineBlock_Router_OpenSocial', '/', false); $this->_testRoute('EngineBlock_Router_OpenSocial', '/default/index/index', false); }
public function testRequired() { Test_EngineBlock_Router_AssertionBuilder::create($this)->routerClass('EngineBlock_Router_Default')->uri('/default/index/index')->routable()->test(); Test_EngineBlock_Router_AssertionBuilder::create($this)->routerClass('EngineBlock_Router_Default')->uri('/default/index/index')->requireModule('Test')->notRoutable()->test(); Test_EngineBlock_Router_AssertionBuilder::create($this)->routerClass('EngineBlock_Router_Default')->uri('/test/index/index')->requireModule('Test')->routable()->expectModule('Test')->test(); }