function ConfigEntityTypeTest::testConstruct

@covers ::__construct

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php, line 95

Class

ConfigEntityTypeTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType[[api-linebreak]] @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testConstruct() {
  $config_entity = new ConfigEntityType([
    'id' => 'example_config_entity_type',
  ]);
  $this->assertEquals('Drupal\\Core\\Config\\Entity\\ConfigEntityStorage', $config_entity->getStorageClass());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.