Crud\TestCase\Controller\Crud\CrudComponentTest::testLoadListener PHP Метод

testLoadListener() публичный Метод

testLoadListener
public testLoadListener ( ) : void
Результат void
    public function testLoadListener()
    {
        $this->Crud->config('listeners.HasSetup', ['className' => 'Crud\\TestCase\\Controller\\Crud\\TestListener']);
        $this->setReflectionClassInstance($this->Crud);
        $listener = $this->callProtectedMethod('_loadListener', ['HasSetup'], $this->Crud);
        $this->assertSame(1, $listener->callCount, 'Setup should be called');
    }