function NullCoalesceTest::testExceptionOnInvalidValue
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/process/NullCoalesceTest.php \Drupal\Tests\migrate\Unit\process\NullCoalesceTest::testExceptionOnInvalidValue()
- 8.9.x core/modules/migrate/tests/src/Unit/process/NullCoalesceTest.php \Drupal\Tests\migrate\Unit\process\NullCoalesceTest::testExceptionOnInvalidValue()
- 11.x core/modules/migrate/tests/src/Unit/process/NullCoalesceTest.php \Drupal\Tests\migrate\Unit\process\NullCoalesceTest::testExceptionOnInvalidValue()
Tests that an exception is thrown for a non-array value.
@covers ::transform
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ NullCoalesceTest.php, line 24
Class
- NullCoalesceTest
- Tests the null_coalesce process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testExceptionOnInvalidValue() : void {
$this->expectException(MigrateException::class);
(new NullCoalesce([], 'null_coalesce', []))->transform('invalid', $this->migrateExecutable, $this->row, 'destination_property');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.