You are here

protected function UserPictureTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/UserPictureTest.php \Drupal\Tests\user\Functional\UserPictureTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/user/tests/src/Functional/UserPictureTest.php, line 46

Class

UserPictureTest
Tests user picture functionality.

Namespace

Drupal\Tests\user\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // This test expects unused managed files to be marked temporary and then
  // cleaned up by file_cron().
  $this
    ->config('file.settings')
    ->set('make_unused_managed_files_temporary', TRUE)
    ->save();
  $this->webUser = $this
    ->drupalCreateUser([
    'access content',
    'access comments',
    'post comments',
    'skip comment approval',
  ]);
}