// Verify that the confirmation message appears.
require_once $this->root . '/core/includes/install.inc';
$this->
assertSession()->
pageTextContains('Congratulations, you installed Drupal!'
);
// 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() {