ParsedownTest::testImagesSubDirAbsoluteUrls PHP Method

testImagesSubDirAbsoluteUrls() public method

    public function testImagesSubDirAbsoluteUrls()
    {
        $this->config->set('system.absolute_urls', true);
        $this->uri->initializeWithUrlAndRootPath('http://testing.dev/subdir/item2/item2-2', '/subdir')->init();
        $this->assertSame('<p><img src="http://testing.dev/subdir/tests/fake/nested-site/user/pages/02.item2/02.item2-2/sample-image.jpg" /></p>', $this->parsedown->text('![](sample-image.jpg)'));
        $this->assertRegexp('|<p><img src="http:\\/\\/testing.dev\\/subdir\\/images\\/.*-cache-image.jpe?g" \\/><\\/p>|', $this->parsedown->text('![](cache-image.jpg?cache)'));
        $this->assertRegexp('|<p><img src="http:\\/\\/testing.dev\\/subdir\\/images\\/.*-home-cache-image.jpe?g" \\/><\\/p>|', $this->parsedown->text('![](/home-cache-image.jpg?cropResize=200,200)'));
        $this->assertSame('<p><img src="http://testing.dev/subdir/item2/item2-2/missing-image.jpg" alt="" /></p>', $this->parsedown->text('![](missing-image.jpg)'));
        $this->assertSame('<p><img src="http://testing.dev/subdir/home-missing-image.jpg" alt="" /></p>', $this->parsedown->text('![](/home-missing-image.jpg)'));
    }