// Ensure that the timezone is correct for sites under test after installing
// interactively.
$this->
assertEquals('Australia/Sydney',
$this->
config('system.date'
)->
get('timezone.default'
));
// Ensure the profile has a weight of 1000.
$module_extension_list = \Drupal::
service('extension.list.module'
);
$extensions =
$module_extension_list->
getList();
$this->
assertArrayHasKey('testing',
$extensions);
$this->
assertEquals(1000,
$extensions['testing'
]->weight
);
// Ensures that router is not rebuilt unnecessarily during the install.
$this->
assertSame(1, \Drupal::
service('core.performance.test.recorder'
)->
getCount('event', RoutingEvents::FINISHED
));
} /**
* Installer step: Select language.
*/
protected function setUpLanguage() { // Test that \Drupal\Core\Render\BareHtmlPageRenderer adds assets and
// metatags as expected to the first page of the installer.
$this->
assertSession()->
responseContains("css/components/button.css"
);
$this->
assertSession()->
responseContains('<meta charset="utf-8" />'
);