public function GateTest::testGateBadConfigration in Migrate Plus 8.5
Test Gate plugin with bad configuration.
@dataProvider badConfigurationProvider
File
- tests/
src/ Unit/ process/ GateTest.php, line 158
Class
- GateTest
- Tests the gate process plugin.
Namespace
Drupal\Tests\migrate_plus\Unit\processCode
public function testGateBadConfigration($configuration, $message) : void {
$this
->expectException(MigrateException::class);
$this
->expectExceptionMessage($message);
$plugin = new Gate($configuration, 'gate', []);
$plugin
->transform(NULL, $this->migrateExecutable, $this->row, 'destinationproperty');
}