'handlers' =>
['storage' => '\Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage'
],
]);
} /**
* @covers ::setStorageClass
*/
public function testSetStorageClass() { $config_entity =
$this->
setUpConfigEntityType([]);
$this->
expectException(ConfigEntityStorageClassException::
class);
$this->
expectExceptionMessage('\Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage is not \Drupal\Core\Config\Entity\ConfigEntityStorage or it does not extend it'
);
$config_entity->
setStorageClass('\Drupal\Core\Entity\KeyValueStore\KeyValueEntityStorage'
);
} /**
* Tests the getConfigPrefix() method.
*
* @dataProvider providerTestGetConfigPrefix
*
* @covers ::getConfigPrefix
*/
public function testGetConfigPrefix($definition,
$expected) { $entity_type =
$this->
setUpConfigEntityType($definition);