Phalcon\Test\Unit\Mvc\UrlTest::testUrlForBlogMixedParameters PHP Метод

testUrlForBlogMixedParameters() публичный Метод

Tests the url with a year/month/title
С версии: 2014-09-04
Автор: Nikolaos Dimopoulos ([email protected])
    public function testUrlForBlogMixedParameters()
    {
        $this->specify("URL with year/month/title not correct", function () {
            $di = $this->setupDI();
            $url = new Url();
            $url->setDI($di);
            $url->setBaseUri('/');
            $params = ['for' => 'lang-controller', 'lang' => 'de', 'controller' => 'index'];
            $expected = '/de/index';
            $actual = $url->get($params);
            expect($actual)->equals($expected);
        });
    }