public function ConfigEntityBaseUnitTest::testGet in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest::testGet()
@covers ::set @covers ::get
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php, line 346 - Contains \Drupal\Tests\Core\Config\Entity\ConfigEntityBaseUnitTest.
Class
- ConfigEntityBaseUnitTest
- @coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityBase @group Config
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGet() {
$name = 'id';
$value = $this
->randomMachineName();
$this
->assertSame($this->id, $this->entity
->get($name));
$this
->assertSame($this->entity, $this->entity
->set($name, $value));
$this
->assertSame($value, $this->entity
->get($name));
}