public function UserRestrictionsExpireTest::testUserRestrictionsExpiredCron in User restrictions 8
Ensure an expired restriction gets deleted on cron.
File
- tests/
src/ Functional/ UserRestrictionsExpireTest.php, line 36
Class
- UserRestrictionsExpireTest
- Tests rule expirations.
Namespace
Drupal\Tests\user_restrictions\FunctionalCode
public function testUserRestrictionsExpiredCron() {
\Drupal::service('cron')
->run();
$this->storage
->resetCache();
$this
->assertNull($this->storage
->load($this->id), 'User restriction does not exist.');
}