lithium\tests\cases\net\http\RouterTest::testStringActions PHP Method

testStringActions() public method

Tests that URLs specified as "Controller::action" are interpreted properly.
public testStringActions ( )
    public function testStringActions()
    {
        Router::connect('/login', array('controller' => 'sessions', 'action' => 'create'));
        Router::connect('/{:controller}/{:action}');
        $result = Router::match("Sessions::create");
        $this->assertIdentical('/login', $result);
        $result = Router::match("Posts::index");
        $this->assertIdentical('/posts', $result);
        $result = Router::match("ListItems::archive");
        $this->assertIdentical('/list_items/archive', $result);
    }
RouterTest