installConfig(['user']); } /** * Ensures that rest export auth settings are automatically corrected. * * @see rest_update_8401() * @see rest_views_presave() * @see \Drupal\rest\Tests\Update\RestExportAuthCorrectionUpdateTest */ public function testAuthCorrection() { // Get particular view. $view = \Drupal::entityTypeManager() ->getStorage('view') ->load('rest_export_with_authorization_correction'); $displays = $view->get('display'); $this->assertSame($displays['rest_export_1']['display_options']['auth'], ['cookie'], 'Cookie is used for authentication'); } }