mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-19 05:46:33 +02:00
Adding a test case to cover the bug fixed in sha: 8956d7e71b
This commit is contained in:
parent
4ec8a70d92
commit
3581dabfc5
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Knp\Bundle\MarkdownBundle\Tests\Parser;
|
||||
|
||||
use Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper;
|
||||
use Knp\Bundle\MarkdownBundle\Tests\fixtures\app\TestKernel;
|
||||
use Knp\Bundle\MarkdownBundle\Parser\ParserManager;
|
||||
|
||||
|
@ -23,5 +24,10 @@ class ParserManagerTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
$actual = $parserManager->transform('*hi*', 'light');
|
||||
$this->assertEquals("<p><em>hi</em></p>\n", $actual, 'Specific parsers are registered');
|
||||
|
||||
/** @var MarkdownHelper $markdownHelper */
|
||||
$markdownHelper = $container->get('templating.helper.markdown');
|
||||
$actual = $markdownHelper->transform('*yo*');
|
||||
$this->assertEquals("<p><em>yo</em></p>\n", $actual, 'The templating helper also works');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue