You are here

public function ResizeTest::testResizeImageWithoutCopy 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::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
    ->assertEqual($width, 315);
  $this
    ->assertEqual($height, 210);
}