public function ResizeTest::testResizeImageWithCopy in IMCE 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php \Drupal\Tests\imce\Kernel\Plugin\ImcePlugin\ResizeTest::testResizeImageWithCopy()
Test resizing the image by making a image copy.
File
- tests/
src/ Kernel/ Plugin/ ImcePlugin/ ResizeTest.php, line 151
Class
- ResizeTest
- Kernel tests for Imce plugins for Imce Plugin Core.
Namespace
Drupal\Tests\imce\Kernel\Plugin\ImcePluginCode
public function testResizeImageWithCopy() {
$this
->setParameterCopy(1);
$this->resize
->opResize($this->imceFM);
list($width, $height) = getimagesize(PublicStream::basePath() . '/ciandt_0.jpg');
$this
->assertEquals($width, 315);
$this
->assertEquals($height, 210);
}