Bolt\Tests\Library\BoltLibraryTest::testPath PHP Method

testPath() public method

public testPath ( )
    public function testPath()
    {
        $app = $this->getApp();
        $app->run();
        $this->expectOutputRegex('#Redirecting to /bolt/#');
        $basic = 'homepage';
        $this->assertEquals('/', Library::path($basic));
        $this->assertEquals('/pages/content', Library::path('contentlink', ['contenttypeslug' => 'pages', 'slug' => 'content']));
        $query = 'testing=yes';
        $this->assertEquals('/search?testing=yes', Library::path('search', [], $query));
    }