You are here

public function ExplodeTest::testTransform in Drupal 10

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

Tests 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);
}