public function BundleEntityDuplicatorTest::testDuplicateFieldsEmptyTarget in Entity API 8
@covers ::duplicateFields
File
- tests/
src/ Kernel/ BundleEntityDuplicatorTest.php, line 143
Class
- BundleEntityDuplicatorTest
- Tests the bundle entity duplicator.
Namespace
Drupal\Tests\entity\KernelCode
public function testDuplicateFieldsEmptyTarget() {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage('The $target_bundle_id must not be empty.');
$this->duplicator
->duplicateFields($this->bundleEntity, '');
}