mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	w
This commit is contained in:
		@ -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()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user