ParsedownTest::testRootAbsoluteLinks PHP Method

    public function testRootAbsoluteLinks()
    {
        $this->uri->initializeWithURL('http://testing.dev/')->init();
        $defaults = ['extra' => false, 'auto_line_breaks' => false, 'auto_url_links' => false, 'escape_markup' => false, 'special_chars' => ['>' => 'gt', '<' => 'lt']];
        $page = $this->pages->dispatch('/');
        $this->parsedown = new Parsedown($page, $defaults);
        $this->assertSame('<p><a href="/item1/item1-3">Down a Level</a></p>', $this->parsedown->text('[Down a Level](item1-3)'));
        $this->assertSame('<p><a href="/item2">Peer Page</a></p>', $this->parsedown->text('[Peer Page](../item2)'));
        $this->assertSame('<p><a href="/?foo=bar">With Query</a></p>', $this->parsedown->text('[With Query](?foo=bar)'));
        $this->assertSame('<p><a href="/foo:bar">With Param</a></p>', $this->parsedown->text('[With Param](/foo:bar)'));
        $this->assertSame('<p><a href="#foo">With Anchor</a></p>', $this->parsedown->text('[With Anchor](#foo)'));
        $this->config->set('system.languages.supported', ['fr', 'en']);
        unset($this->grav['language']);
        $this->grav['language'] = new Language($this->grav);
        $this->uri->initializeWithURL('http://testing.dev/fr/item2/item2-2')->init();
        $this->assertSame('<p><a href="/fr/item2">Peer Page</a></p>', $this->parsedown->text('[Peer Page](../item2)'));
        $this->assertSame('<p><a href="/fr/item1/item1-3">Down a Level</a></p>', $this->parsedown->text('[Down a Level](item1-3)'));
        $this->assertSame('<p><a href="/fr/?foo=bar">With Query</a></p>', $this->parsedown->text('[With Query](?foo=bar)'));
        $this->assertSame('<p><a href="/fr/foo:bar">With Param</a></p>', $this->parsedown->text('[With Param](/foo:bar)'));
        $this->assertSame('<p><a href="#foo">With Anchor</a></p>', $this->parsedown->text('[With Anchor](#foo)'));
    }