You are here

public function ContentModerationStateTest::testGetCurrentUserId in Drupal 8

Tests the legacy method used as the default entity owner.

@group legacy @expectedDeprecation The ::getCurrentUserId method is deprecated in 8.6.x and will be removed before 9.0.0.

1 method overrides ContentModerationStateTest::testGetCurrentUserId()
WorkspacesContentModerationStateTest::testGetCurrentUserId in core/modules/content_moderation/tests/src/Kernel/WorkspacesContentModerationStateTest.php
Tests the legacy method used as the default entity owner.

File

core/modules/content_moderation/tests/src/Kernel/ContentModerationStateTest.php, line 686

Class

ContentModerationStateTest
Tests links between a content entity and a content_moderation_state entity.

Namespace

Drupal\Tests\content_moderation\Kernel

Code

public function testGetCurrentUserId() {
  $this
    ->assertEquals([
    '0',
  ], ContentModerationState::getCurrentUserId());
}