public function ExplodeTest::testExplodeWithNonString in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testExplodeWithNonString()
- 10 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::testExplodeWithNonString()
Tests explode fails properly on non-strings.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php, line 58
Class
- ExplodeTest
- Tests the Explode process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExplodeWithNonString() {
$this
->expectException(MigrateException::class);
$this
->expectExceptionMessage('is not a string');
$this->plugin
->transform([
'foo',
], $this->migrateExecutable, $this->row, 'destination_property');
}