ImboUnitTest\EventListener\ImageTransformerTest::testSupportsPresets PHP Метод

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

public testSupportsPresets ( )
    public function testSupportsPresets()
    {
        $this->event->expects($this->once())->method('getConfig')->will($this->returnValue(['transformationPresets' => ['preset' => ['flipHorizontally', 'flipVertically']]]));
        $this->request->expects($this->once())->method('getTransformations')->will($this->returnValue([['name' => 'preset', 'params' => []]]));
        $this->eventManager->expects($this->at(0))->method('trigger')->with('image.transformation.fliphorizontally', ['image' => $this->image, 'params' => []]);
        $this->eventManager->expects($this->at(1))->method('trigger')->with('image.transformation.flipvertically', ['image' => $this->image, 'params' => []]);
        $this->listener->transform($this->event);
    }