eZ\Publish\Core\Base\Tests\Container\Compiler\Search\SignalSlotPassTest::testAttachSignal PHP Method

testAttachSignal() public method

public testAttachSignal ( )
    public function testAttachSignal()
    {
        $signal = 'signal_identifier';
        $serviceId = 'service_id';
        $def = new Definition();
        $def->addTag('ezpublish.search.slot', array('signal' => $signal));
        $this->setDefinition($serviceId, $def);
        $this->compile();
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall('ezpublish.signalslot.signal_dispatcher', 'attach', array($signal, new Reference($serviceId)));
    }