ConfigDevelSubscriberEntityTest.php in Configuration development 8
File
tests/src/Kernel/ConfigDevelSubscriberEntityTest.php
View source
<?php
namespace Drupal\Tests\config_devel\Kernel;
class ConfigDevelSubscriberEntityTest extends ConfigDevelSubscriberTestBase {
public static $modules = array(
'config_test',
);
const CONFIGNAME = 'config_test.dynamic.test';
protected function doAssert(array $data, array $exported_data) {
$entity = \Drupal::entityTypeManager()
->getStorage('config_test')
->load('test');
$this
->assertIdentical($data['label'], $entity
->get('label'));
$this
->assertIdentical($exported_data['label'], $data['label']);
$this
->assertIdentical($exported_data['id'], 'test');
$this
->assertFalse(isset($exported_data['uuid']));
}
}