$this->nodeType = NodeType::
create([ 'type' =>
mb_strtolower($this->
randomMachineName()),
'name' =>
$this->
randomString(),
]);
$this->nodeType->
save();
// Create a custom bundle.
$this->customBundle = 'test_bundle_' .
mb_strtolower($this->
randomMachineName());
entity_test_create_bundle($this->customBundle, NULL, 'entity_test'
);
// Prepare the logger for collecting the expected critical error.
$this->container->
get($this->testLogServiceName
)->
cleanLogs();
} /**
* Tests that config bundle deletions are mirrored in field config settings.
*/
public function testConfigTargetBundleDeletion() { // Create two vocabularies.
/** @var \Drupal\taxonomy\Entity\Vocabulary[] $vocabularies */
$vocabularies =
[];
for ($i = 0;
$i < 2;
$i++
) { $vid =
mb_strtolower($this->
randomMachineName());