Contao\CoreBundle\Test\Image\ImageFactoryTest::testCreateWithImageObjectAndEmptyResizeConfiguration PHP Method

testCreateWithImageObjectAndEmptyResizeConfiguration() public method

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);
    }