diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-02-23 19:03:41 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-04-02 19:16:02 +0200 |
commit | c1ba3a678d5a565b74d893c57eb5133623702350 (patch) | |
tree | 7902f508e607c7fcc368bd4dfcc218bc10ecbad8 /tests/text_formatter | |
parent | 414dcae422d21693aad746b4a7a0d49517e478d9 (diff) | |
download | forums-c1ba3a678d5a565b74d893c57eb5133623702350.tar forums-c1ba3a678d5a565b74d893c57eb5133623702350.tar.gz forums-c1ba3a678d5a565b74d893c57eb5133623702350.tar.bz2 forums-c1ba3a678d5a565b74d893c57eb5133623702350.tar.xz forums-c1ba3a678d5a565b74d893c57eb5133623702350.zip |
[ticket/11768] Added methods to access the library's parser/renderer
PHPBB3-11768
Diffstat (limited to 'tests/text_formatter')
-rw-r--r-- | tests/text_formatter/s9e/parser_test.php | 8 | ||||
-rw-r--r-- | tests/text_formatter/s9e/renderer_test.php | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/parser_test.php b/tests/text_formatter/s9e/parser_test.php index 09af6c22ad..a3c86e8350 100644 --- a/tests/text_formatter/s9e/parser_test.php +++ b/tests/text_formatter/s9e/parser_test.php @@ -7,6 +7,7 @@ * */ require_once __DIR__ . '/../../../phpBB/includes/functions.php'; +require_once __DIR__ . '/../../../phpBB/includes/functions_content.php'; require_once __DIR__ . '/../../mock/user.php'; require_once __DIR__ . '/../../mock/cache.php'; @@ -164,4 +165,11 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case ) ); } + + public function test_get_parser() + { + $container = $this->get_test_case_helpers()->set_s9e_services(); + $parser = $container->get('text_formatter.parser'); + $this->assertInstanceOf('s9e\\TextFormatter\\Parser', $parser->get_parser()); + } } diff --git a/tests/text_formatter/s9e/renderer_test.php b/tests/text_formatter/s9e/renderer_test.php index fbf17c8f68..486b17d03f 100644 --- a/tests/text_formatter/s9e/renderer_test.php +++ b/tests/text_formatter/s9e/renderer_test.php @@ -353,4 +353,11 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case ); } } + + public function test_get_renderer() + { + $container = $this->get_test_case_helpers()->set_s9e_services(); + $renderer = $container->get('text_formatter.renderer'); + $this->assertInstanceOf('s9e\\TextFormatter\\Renderer', $renderer->get_renderer()); + } } |