EntityKernelTestBaseTest.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\KernelTests\Core\EntityFile
core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBaseTest.phpView source
<?php
namespace Drupal\KernelTests\Core\Entity;
/**
* @covers \Drupal\KernelTests\Core\Entity\EntityKernelTestBase
*
* @group Entity
*/
class EntityKernelTestBaseTest extends EntityKernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this
->createUser();
}
/**
* Tests that the current user is set up correctly.
*/
public function testSetUpCurrentUser() {
$account = $this
->setUpCurrentUser();
$current_user = \Drupal::currentUser();
$this
->assertSame($account
->id(), $current_user
->id());
}
}
Classes
Name | Description |
---|---|
EntityKernelTestBaseTest | @covers \Drupal\KernelTests\Core\Entity\EntityKernelTestBase |