ParsedownTest::testAnchorLinksWithPortAbsoluteUrls PHP Method

testAnchorLinksWithPortAbsoluteUrls() public method

    public function testAnchorLinksWithPortAbsoluteUrls()
    {
        $this->config->set('system.absolute_urls', true);
        $this->uri->initializeWithURL('http://testing.dev:8080/item2/item2-2')->init();
        $this->assertSame('<p><a href="http://testing.dev:8080/item2/item2-1#foo">Peer Anchor</a></p>', $this->parsedown->text('[Peer Anchor](../item2-1#foo)'));
        $this->assertSame('<p><a href="http://testing.dev:8080/item2/item2-1#foo">Peer Anchor 2</a></p>', $this->parsedown->text('[Peer Anchor 2](../item2-1/#foo)'));
        $this->assertSame('<p><a href="#foo">Current Anchor</a></p>', $this->parsedown->text('[Current Anchor](#foo)'));
        $this->assertSame('<p><a href="http://testing.dev:8080/#foo">Root Anchor</a></p>', $this->parsedown->text('[Root Anchor](/#foo)'));
    }