diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-18 12:51:13 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-18 12:57:30 +0200 |
commit | 17a1ed6fb59e36dcefa43d9755a69ab146e11576 (patch) | |
tree | bf3f406b7b1dc56b20973430bb758c922f0409d7 /tests | |
parent | 6da52acb3ce849b25adbf0ef9533a0acb7286ddf (diff) | |
download | forums-17a1ed6fb59e36dcefa43d9755a69ab146e11576.tar forums-17a1ed6fb59e36dcefa43d9755a69ab146e11576.tar.gz forums-17a1ed6fb59e36dcefa43d9755a69ab146e11576.tar.bz2 forums-17a1ed6fb59e36dcefa43d9755a69ab146e11576.tar.xz forums-17a1ed6fb59e36dcefa43d9755a69ab146e11576.zip |
[ticket/12273] Move MD Exporter to separate file
PHPBB3-12273
Diffstat (limited to 'tests')
-rw-r--r-- | tests/event/md_exporter_test.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/event/md_exporter_test.php b/tests/event/md_exporter_test.php new file mode 100644 index 0000000000..52d10bd3e3 --- /dev/null +++ b/tests/event/md_exporter_test.php @@ -0,0 +1,30 @@ +<?php +/** +* +* @package testing +* @copyright (c) 2014 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +class phpbb_event_md_exporter_test extends phpbb_test_case +{ + + static public function crawl_eventsmd_data() + { + return array( + array('styles'), + array('adm'), + ); + } + + /** + * @dataProvider crawl_eventsmd_data + */ + public function test_crawl_eventsmd($filter) + { + global $phpbb_root_path; + $exporter = new \phpbb\event\md_exporter($phpbb_root_path); + $this->assertGreaterThan(0, $exporter->crawl_eventsmd('docs/events.md', $filter)); + } +} |