mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-02-01 17:49:58 +09:00
Update unit test for ModuleActionParser
This commit is contained in:
parent
3241354872
commit
316cb49729
2 changed files with 9 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class ModuleActionParserTest extends \Codeception\TestCase\Test
|
|||
$this->assertTrue(is_object($info->event_handlers[0]));
|
||||
$this->assertEquals('document.insertDocument', $info->event_handlers[0]->event_name);
|
||||
$this->assertEquals('after', $info->event_handlers[0]->position);
|
||||
$this->assertEquals('Controllers\\Triggers', $info->event_handlers[0]->class_name);
|
||||
$this->assertEquals('\\VendorName\\Hello\\World\\Controllers\\Triggers', $info->event_handlers[0]->class_name);
|
||||
$this->assertEquals('triggerAfterInsertDocument', $info->event_handlers[0]->method);
|
||||
$this->assertTrue(is_object($info->event_handlers[1]));
|
||||
$this->assertEquals('act:document.procDocumentVoteUp', $info->event_handlers[1]->event_name);
|
||||
|
|
@ -78,6 +78,10 @@ class ModuleActionParserTest extends \Codeception\TestCase\Test
|
|||
$this->assertEquals('controller', $info->event_handlers[1]->class_name);
|
||||
$this->assertEquals('triggerBeforeDocumentVoteUp', $info->event_handlers[1]->method);
|
||||
|
||||
// Custom classes
|
||||
$this->assertEquals('Custom\\DefaultClass', $info->classes['default']);
|
||||
$this->assertEquals('Custom\\InstallClass', $info->classes['install']);
|
||||
|
||||
// Custom namespaces
|
||||
$this->assertTrue(is_array($info->namespaces));
|
||||
$this->assertTrue(in_array('VendorName\\Hello\\World', $info->namespaces));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue