Neos\Media\Tests\Unit\Domain\Model\Adjustment\ResizeImageAdjustmentTest::ifWidthIsSetHeightIsDeterminedByTheOriginalAspectRatio PHP Метод

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

    public function ifWidthIsSetHeightIsDeterminedByTheOriginalAspectRatio()
    {
        /** @var ResizeImageAdjustment $adjustment */
        $adjustment = $this->getAccessibleMock(ResizeImageAdjustment::class, array('dummy'));
        $originalDimensions = new Box(400, 300);
        $expectedDimensions = new Box(110, 83);
        $adjustment->setWidth(110);
        $this->assertEquals($expectedDimensions, $adjustment->_call('calculateDimensions', $originalDimensions));
    }