Download & Extend

Automated tests now use almost-empty 'testing' profile by default

Project: 
Drupal core
Introduced in branch: 
8.x
Description: 

In Drupal 7, when developing a test that extended DrupalWebTestCase, each test function would automatically install a new version of the site using the standard profile.

In Drupal 8, this was changed to the 'testing' profile instead; a low-weight profile that doesn't install any non-required modules/themes/etc.

If your tests have assumptions in them about things such as Block module being enabled ("undefined permission 'administer blocks'") or Bartik theme being used instead of Stark, add the following to the top of your test class definition:

<?php
class TextSummaryTest extends WebTestBase {
  protected
$profile = 'standard'; // This line here.
?>

Try to aim to reduce these assumptions, however, because Testing profile is much faster. :)

Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done
nobody click here