spec\Ayaline\Bundle\ComposerBundle\Consumer\UploadComposerConsumerSpec::it_execute_all_steps_and_return_0_status_code PHP Метод

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

public it_execute_all_steps_and_return_0_status_code ( Sonata\NotificationBundle\Consumer\ConsumerEvent $event, Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface $step1, Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface $step2 )
$event Sonata\NotificationBundle\Consumer\ConsumerEvent
$step1 Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface
$step2 Ayaline\Bundle\ComposerBundle\Consumer\Step\StepInterface
    public function it_execute_all_steps_and_return_0_status_code(ConsumerEvent $event, StepInterface $step1, StepInterface $step2)
    {
        $this->beConstructedWith(array($step1, $step2));
        $step1->execute($event, Argument::type('string'))->shouldBeCalled()->willReturn(0);
        $step2->execute($event, Argument::type('string'))->shouldBeCalled()->willReturn(0);
        $this->process($event)->shouldReturn(0);
    }