Gc\Component\NavigationTest::testRenderWithNoActivePage PHP Method

testRenderWithNoActivePage() public method

Test
public testRenderWithNoActivePage ( ) : void
return void
    public function testRenderWithNoActivePage()
    {
        Registry::get('Application')->getRequest()->getUri()->setPath('/other-uri');
        $this->object = new Navigation();
        $this->object->useActiveBranch(true);
        $array = $this->object->render();
        $this->assertTrue(count($array) > 0);
    }