
| Current Path : /var/www/html/strat/web/core/tests/Drupal/KernelTests/Core/Entity/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBaseTest.php |
<?php
declare(strict_types=1);
namespace Drupal\KernelTests\Core\Entity;
/**
* @covers \Drupal\KernelTests\Core\Entity\EntityKernelTestBase
*
* @group Entity
*/
class EntityKernelTestBaseTest extends EntityKernelTestBase {
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->createUser();
}
/**
* Tests that the current user is set up correctly.
*/
public function testSetUpCurrentUser(): void {
$account = $this->setUpCurrentUser();
$current_user = \Drupal::currentUser();
$this->assertSame($account->id(), $current_user->id());
}
}