You are here

public function ResizeTest::testResizeImageWithCopy in IMCE 8

Same name and namespace in other branches
  1. 8.2 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\ImcePlugin

Code

public function testResizeImageWithCopy() {
  $this
    ->setParameterCopy(1);
  $this->resize
    ->opResize($this->imceFM);
  list($width, $height) = getimagesize(PublicStream::basePath() . '/ciandt_0.jpg');
  $this
    ->assertEqual($width, 315);
  $this
    ->assertEqual($height, 210);
}