function MediaTest::testGetCurrentUserId

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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.