You are here

public function DemoImageTest::testTransformBadConfiguration in Panopoly 8.2

Tests calling transform() with bad configuration.

@covers ::transform

File

modules/panopoly/panopoly_core/tests/src/Unit/Plugin/migrate/process/DemoImageTest.php, line 193

Class

DemoImageTest
Tests for the 'panopoly_demo_image' migrate process plugin.

Namespace

Drupal\Tests\panopoly_core\Unit\Plugin\migrate\process

Code

public function testTransformBadConfiguration() {
  $plugin = $this
    ->createPlugin([]);
  $executable = $this
    ->prophesize(MigrateExecutableInterface::class);
  $row = $this
    ->prophesize(Row::class);
  $this
    ->assertEquals([], $plugin
    ->transform(NULL, $executable
    ->reveal(), $row
    ->reveal(), 'field_image'));
}