mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed unit test for parsedown link &
This commit is contained in:
parent
2c3ced3fba
commit
67dd5f256d
|
|
@ -446,7 +446,7 @@ class ParsedownTest extends \Codeception\TestCase\Test
|
|||
$this->parsedown->text('[google.com](https://www.google.com)')
|
||||
);
|
||||
$this->assertSame(
|
||||
'<p><a href="https://github.com/getgrav/grav/issues/new?title=%5Badd-resource%5D%20New%20Plugin%2FTheme&body=Hello%20%2A%2AThere%2A%2A">complex url</a></p>',
|
||||
'<p><a href="https://github.com/getgrav/grav/issues/new?title=%5Badd-resource%5D%20New%20Plugin%2FTheme&body=Hello%20%2A%2AThere%2A%2A">complex url</a></p>',
|
||||
$this->parsedown->text('[complex url](https://github.com/getgrav/grav/issues/new?title=[add-resource]%20New%20Plugin/Theme&body=Hello%20**There**)')
|
||||
);
|
||||
}
|
||||
|
|
@ -1056,7 +1056,7 @@ class ParsedownTest extends \Codeception\TestCase\Test
|
|||
$this->parsedown->text('[Relative Rel](../item2-3?rel=nofollow)')
|
||||
);
|
||||
$this->assertSame(
|
||||
'<p><a href="/item2/item2-3?foo=bar&baz=qux" rel="nofollow" class="button">Relative Mixed</a></p>',
|
||||
'<p><a href="/item2/item2-3?foo=bar&baz=qux" rel="nofollow" class="button">Relative Mixed</a></p>',
|
||||
$this->parsedown->text('[Relative Mixed](../item2-3?foo=bar&baz=qux&rel=nofollow&class=button)')
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user