class NullCoalesceTest extends MigrateProcessTestCase
{ /**
* Tests that an exception is thrown for a non-array value.
*
* @covers ::transform
*/
public function testExceptionOnInvalidValue() { $this->
expectException(MigrateException::
class);
(new NullCoalesce([], 'null_coalesce',
[]))->
transform('invalid',
$this->migrateExecutable,
$this->row, 'destination_property'
);
} /**
* Tests null_coalesce.
*
* @param array $source
* The source value.
* @param mixed $expected_result
* The expected result.
*
* @covers ::transform
*
* @dataProvider transformDataProvider
*
* @throws \Drupal\migrate\MigrateException
*/