You are here

public function MediaTest::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.

File

core/modules/media/tests/src/Kernel/MediaTest.php, line 43

Class

MediaTest
Tests Media.

Namespace

Drupal\Tests\media\Kernel

Code

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