ParsedownTest::testSpecialProtocolsSubDirAbsoluteUrl PHP Method

testSpecialProtocolsSubDirAbsoluteUrl() public method

    public function testSpecialProtocolsSubDirAbsoluteUrl()
    {
        $this->config->set('system.absolute_urls', true);
        $this->uri->initializeWithUrlAndRootPath('http://testing.dev/subdir/item2/item2-2', '/subdir')->init();
        $this->assertSame('<p><a href="mailto:[email protected]">mailto</a></p>', $this->parsedown->text('[mailto](mailto:[email protected])'));
        $this->assertSame('<p><a href="xmpp:[email protected]">xmpp</a></p>', $this->parsedown->text('[xmpp](xmpp:[email protected])'));
        $this->assertSame('<p><a href="tel:123-555-12345">tel</a></p>', $this->parsedown->text('[tel](tel:123-555-12345)'));
        $this->assertSame('<p><a href="sms:123-555-12345">sms</a></p>', $this->parsedown->text('[sms](sms:123-555-12345)'));
        $this->assertSame('<p><a href="rdp://ts.example.com">ts.example.com</a></p>', $this->parsedown->text('[ts.example.com](rdp://ts.example.com)'));
    }