Bolt\Tests\Controller\Async\GeneralTest::testMakeUri PHP Method

testMakeUri() public method

public testMakeUri ( )
    public function testMakeUri()
    {
        // Set up a fake request for getContent()'s sake
        $this->setRequest(Request::create('/'));
        $record = $this->getService('storage')->getContent('pages/1');
        $this->setRequest(Request::create('/async/makeuri', 'GET', ['title' => $record->values['title'], 'id' => $record->values['id'], 'contenttypeslug' => 'pages', 'fulluri' => true]));
        $response = $this->controller()->makeUri($this->getRequest());
        $this->assertSame('/page/' . $record->values['slug'], $response);
    }