public testAddListenerByNameAndClassName ( ) : void | ||
return | void |
public function testAddListenerByNameAndClassName()
{
$this->Crud->addListener('foo', 'Crud.Api');
$config = $this->Crud->config('listeners');
$this->assertEquals(['className' => 'Crud.Api'], $config['foo']);
}