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