You are here

public function ResizeTest::testResizeImageWithoutCopy in IMCE 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php \Drupal\Tests\imce\Kernel\Plugin\ImcePlugin\ResizeTest::testResizeImageWithoutCopy()

Test image resizing without copy.

File

tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php, line 162

Class

ResizeTest
Kernel tests for Imce plugins for Imce Plugin Core.

Namespace

Drupal\Tests\imce\Kernel\Plugin\ImcePlugin

Code

public function testResizeImageWithoutCopy() {
  $this
    ->setParameterCopy(0);
  $this->resize
    ->opResize($this->imceFM);
  list($width, $height) = getimagesize(PublicStream::basePath() . '/ciandt.jpg');
  $this
    ->assertEquals($width, 315);
  $this
    ->assertEquals($height, 210);
}