function UserServiceProviderTest::testUserServiceProvider

Tests that tempstore.expire is set to user.tempstore.expire.

@expectedDeprecation The container parameter "user.tempstore.expire" is deprecated. Use "tempstore.expire" instead. See https://www.drupal.org/node/2935639.

File

core/modules/user/tests/src/Kernel/UserServiceProviderTest.php, line 28

Class

UserServiceProviderTest
Tests <a href="/api/drupal/core%21modules%21user%21src%21UserServiceProvider.php/class/UserServiceProvider/8.9.x" title="UserServiceProvider" class="local">\Drupal\user\UserServiceProvider</a>.

Namespace

Drupal\Tests\user\Kernel

Code

public function testUserServiceProvider() {
    $this->assertEquals(1000, $this->container
        ->getParameter('tempstore.expire'));
}

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