Neos\Flow\Tests\Unit\Http\Component\ComponentChainTest::handleResetsTheCancelParameterIfItWasTrue PHP Метод

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

    public function handleResetsTheCancelParameterIfItWasTrue()
    {
        $mockComponent1 = $this->getMockBuilder(Http\Component\ComponentInterface::class)->getMock();
        $this->mockComponentContext->expects($this->at(1))->method('getParameter')->with(Http\Component\ComponentChain::class, 'cancel')->will($this->returnValue(true));
        $this->mockComponentContext->expects($this->at(2))->method('setParameter')->with(Http\Component\ComponentChain::class, 'cancel', null);
        $options = ['components' => [$mockComponent1]];
        $this->componentChain = new Http\Component\ComponentChain($options);
        $this->componentChain->handle($this->mockComponentContext);
    }