Contao\CoreBundle\Test\Image\ImageFactoryTest::testCreateWithImageObjectAndEmptyResizeConfiguration PHP 메소드

testCreateWithImageObjectAndEmptyResizeConfiguration() 공개 메소드

Tests the create() method.
    public function testCreateWithImageObjectAndEmptyResizeConfiguration()
    {
        $imageMock = $this->getMockBuilder('Contao\\Image\\ImageInterface')->disableOriginalConstructor()->getMock();
        $imageFactory = $this->createImageFactory();
        $image = $imageFactory->create($imageMock, new ResizeConfiguration());
        $this->assertSame($imageMock, $image);
    }