From ab3e36014c413e74aaa5abaf821a86e2b3ecab97 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 22 Jul 2011 15:01:21 -0400 Subject: [PATCH] w --- tests/unit/framework/base/ComponentTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/framework/base/ComponentTest.php b/tests/unit/framework/base/ComponentTest.php index 03cffd7..3cca1b2 100644 --- a/tests/unit/framework/base/ComponentTest.php +++ b/tests/unit/framework/base/ComponentTest.php @@ -84,11 +84,11 @@ class ComponentTest extends \yii\test\TestCase $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->assertTrue($this->component->hasEventHandler('OnMyEvent')); + $this->assertTrue($this->component->hasEventHandlers('OnMyEvent')); } public function testGetEventHandlers()