public function ImageTest::testScaleHeight in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testScaleHeight()
- 9 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testScaleHeight()
Tests \Drupal\Core\Image\Image::scale().
File
- core/
tests/ Drupal/ Tests/ Core/ Image/ ImageTest.php, line 304
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testScaleHeight() {
$this
->getTestImageForOperation('Scale');
$this->toolkitOperation
->expects($this
->once())
->method('execute')
->will($this
->returnArgument(0));
$ret = $this->image
->scale(NULL, 50, FALSE);
$this
->assertEquals(44, $ret['width']);
}