Commit ab3e3601 by Qiang Xue

w

parent ea4cd9c5
...@@ -84,11 +84,11 @@ class ComponentTest extends \yii\test\TestCase ...@@ -84,11 +84,11 @@ class ComponentTest extends \yii\test\TestCase
$this->assertFalse($this->component->hasEvent('onYourEvent')); $this->assertFalse($this->component->hasEvent('onYourEvent'));
} }
public function testHasEventHandler() public function testHasEventHandlers()
{ {
$this->assertFalse($this->component->hasEventHandler('OnMyEvent')); $this->assertFalse($this->component->hasEventHandlers('OnMyEvent'));
$this->component->attachEventHandler('OnMyEvent','foo'); $this->component->attachEventHandler('OnMyEvent','foo');
$this->assertTrue($this->component->hasEventHandler('OnMyEvent')); $this->assertTrue($this->component->hasEventHandlers('OnMyEvent'));
} }
public function testGetEventHandlers() public function testGetEventHandlers()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment