You are here

public function ConfigEntityAdapterTest::testGetString in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php \Drupal\KernelTests\Core\Entity\ConfigEntityAdapterTest::testGetString()

@covers ::getString

File

core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityAdapterTest.php, line 135

Class

ConfigEntityAdapterTest
Tests entity adapter for configuration entities.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testGetString() {
  $adapter = ConfigEntityAdapter::createFromEntity($this->entity);
  $this
    ->assertEquals('foobar', $adapter
    ->getString());
}