function UpdateManagerUpdateTest::setUp
Overrides BrowserTestBase::setUp
File
- 
              core/
modules/ update/ tests/ src/ Functional/ UpdateManagerUpdateTest.php, line 33  
Class
- UpdateManagerUpdateTest
 - Tests the Update Manager module's 'Update' form and functionality.
 
Namespace
Drupal\Tests\update\FunctionalCode
protected function setUp() : void {
  parent::setUp();
  $admin_user = $this->drupalCreateUser([
    'administer software updates',
    'administer site configuration',
  ]);
  $this->drupalLogin($admin_user);
  // The installed state of the system is the same for all test cases. What
  // varies for each test scenario is which release history fixture we fetch,
  // which in turn changes the expected state of the UpdateManagerUpdateForm.
  $this->mockInstalledExtensionsInfo([
    'aaa_update_test' => [
      'project' => 'aaa_update_test',
      'version' => '8.x-1.0',
      'hidden' => FALSE,
    ],
    'bbb_update_test' => [
      'project' => 'bbb_update_test',
      'version' => '8.x-1.0',
      'hidden' => FALSE,
    ],
    'ccc_update_test' => [
      'project' => 'ccc_update_test',
      'version' => '8.x-1.0',
      'hidden' => FALSE,
    ],
  ]);
  $this->mockDefaultExtensionsInfo([
    'version' => '8.0.0',
  ]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.