public function ImageTest::testRotate in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testRotate()
Tests \Drupal\Core\Image\Image::rotate().
File
- core/
tests/ Drupal/ Tests/ Core/ Image/ ImageTest.php, line 472
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testRotate() {
$this
->getTestImageForOperation('Rotate');
$this->toolkitOperation
->expects($this
->once())
->method('execute')
->will($this
->returnArgument(0));
$ret = $this->image
->rotate(90);
$this
->assertEquals(90, $ret['degrees']);
}