You are here

public function ExplodeTest::testTransform in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testTransform()
  2. 10 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testTransform()

Test explode transform process works.

File

core/modules/migrate/tests/src/Unit/process/ExplodeTest.php, line 30

Class

ExplodeTest
Tests the Explode process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testTransform() {
  $value = $this->plugin
    ->transform('foo,bar,tik', $this->migrateExecutable, $this->row, 'destination_property');
  $this
    ->assertSame([
    'foo',
    'bar',
    'tik',
  ], $value);
}