// Test diffing a renamed config entity.
$test_entity_id = $this->randomMachineName();
- $test_entity = entity_create('config_test', [
+ $test_entity = \Drupal::entityTypeManager()->getStorage('config_test')->create([
'id' => $test_entity_id,
'label' => $this->randomMachineName(),
]);