aboutsummaryrefslogtreecommitdiffstats
path: root/tests/event
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-20 14:58:24 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-20 14:58:24 +0200
commit08cce5fba548374c8c067ee8bed8aa6d388367e5 (patch)
treeab906395fab16554be9229cf709aa0af11ecb2d2 /tests/event
parent6849e8b36f5d097a413c87a1321a09b9209a9d71 (diff)
downloadforums-08cce5fba548374c8c067ee8bed8aa6d388367e5.tar
forums-08cce5fba548374c8c067ee8bed8aa6d388367e5.tar.gz
forums-08cce5fba548374c8c067ee8bed8aa6d388367e5.tar.bz2
forums-08cce5fba548374c8c067ee8bed8aa6d388367e5.tar.xz
forums-08cce5fba548374c8c067ee8bed8aa6d388367e5.zip
[ticket/12273] Remove duplicated code
PHPBB3-12273
Diffstat (limited to 'tests/event')
-rw-r--r--tests/event/php_exporter_test.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/event/php_exporter_test.php b/tests/event/php_exporter_test.php
index a289f5f6e4..5df7713bdf 100644
--- a/tests/event/php_exporter_test.php
+++ b/tests/event/php_exporter_test.php
@@ -233,7 +233,8 @@ class phpbb_event_php_exporter_test extends phpbb_test_case
*/
public function test_get_dispatch_name($event_line, $expected)
{
- $this->assertEquals($expected, $this->exporter->get_dispatch_name($event_line));
+ $this->exporter->set_content(array($event_line));
+ $this->assertEquals($expected, $this->exporter->get_event_name(0, true));
}
static public function get_dispatch_name_throws_data()
@@ -252,7 +253,8 @@ class phpbb_event_php_exporter_test extends phpbb_test_case
*/
public function test_get_dispatch_name_throws($event_line)
{
- $this->exporter->get_dispatch_name($event_line);
+ $this->exporter->set_content(array($event_line));
+ $this->exporter->get_event_name(0, true);
}
static public function get_trigger_event_name_data()
@@ -270,7 +272,8 @@ class phpbb_event_php_exporter_test extends phpbb_test_case
*/
public function test_get_trigger_event_name($event_line, $expected)
{
- $this->assertEquals($expected, $this->exporter->get_trigger_event_name($event_line));
+ $this->exporter->set_content(array($event_line));
+ $this->assertEquals($expected, $this->exporter->get_event_name(0, false));
}
static public function get_trigger_event_name_throws_data()
@@ -293,7 +296,8 @@ class phpbb_event_php_exporter_test extends phpbb_test_case
*/
public function test_get_trigger_event_name_throws($event_line)
{
- $this->exporter->get_trigger_event_name($event_line);
+ $this->exporter->set_content(array($event_line));
+ $this->exporter->get_event_name(0, false);
}
static public function get_vars_from_array_data()