function DateFieldTest::testDefineValueProcessPipelineException
Same name in other branches
- 9 core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php \Drupal\Tests\datetime\Unit\Plugin\migrate\field\DateFieldTest::testDefineValueProcessPipelineException()
- 10 core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php \Drupal\Tests\datetime\Unit\Plugin\migrate\field\DateFieldTest::testDefineValueProcessPipelineException()
- 11.x core/modules/datetime/tests/src/Unit/Plugin/migrate/field/DateFieldTest.php \Drupal\Tests\datetime\Unit\Plugin\migrate\field\DateFieldTest::testDefineValueProcessPipelineException()
Tests invalid date types throw an exception.
@covers ::defineValueProcessPipeline
File
-
core/
modules/ datetime/ tests/ src/ Unit/ Plugin/ migrate/ field/ DateFieldTest.php, line 98
Class
- DateFieldTest
- Provides unit tests for the DateField Plugin.
Namespace
Drupal\Tests\datetime\Unit\Plugin\migrate\fieldCode
public function testDefineValueProcessPipelineException() {
$migration = $this->createMock('Drupal\\migrate\\Plugin\\MigrationInterface');
$plugin = new DateField([], '', []);
$this->expectException(MigrateException::class);
$plugin->defineValueProcessPipeline($migration, 'field_date', [
'type' => 'totoro',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.