1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12273] Move MD Exporter to separate file

PHPBB3-12273
This commit is contained in:
Joas Schilling
2014-04-18 12:51:13 +02:00
parent 6da52acb3c
commit 17a1ed6fb5
2 changed files with 253 additions and 0 deletions

View File

@@ -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));
}
}