function ConfigEntityTypeTest::testConstruct

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testConstruct()
  2. 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testConstruct()
  3. 8.9.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testConstruct()

Tests construct.

@legacy-covers ::__construct

File

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

Class

ConfigEntityTypeTest
Tests Drupal\Core\Config\Entity\ConfigEntityType.

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testConstruct() : void {
  $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.