databaseDumpFiles = [ __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', __DIR__ . '/../../../tests/fixtures/update/rest-export-with-authentication.php', ]; } /** * Ensures that update hook is run for rest module. */ public function testUpdate() { $this->runUpdates(); // Get particular view. $view = \Drupal::entityTypeManager()->getStorage('view')->load('rest_export_with_authorization'); $displays = $view->get('display'); $this->assertIdentical($displays['rest_export_1']['display_options']['auth']['basic_auth'], 'basic_auth', 'Basic authentication is set as authentication method.'); } }