Update to Drupal 8.1.9. For more information, see https://www.drupal.org/project/drupal/releases/8.1.9
This commit is contained in:
parent
f9f23cdf38
commit
09b113657a
125 changed files with 2307 additions and 385 deletions
|
@ -50,7 +50,7 @@ function hook_test_group_finished() {
|
|||
* $results The results of the test as gathered by
|
||||
* \Drupal\simpletest\WebTestBase.
|
||||
*
|
||||
* @see \Drupal\simpletest\WebTestBase->results()
|
||||
* @see \Drupal\simpletest\WebTestBase::results()
|
||||
*/
|
||||
function hook_test_finished($results) {
|
||||
}
|
||||
|
|
|
@ -33,6 +33,11 @@ class BrowserTestBaseTest extends BrowserTestBase {
|
|||
// Test page contains some text.
|
||||
$this->assertSession()->pageTextContains('Test page text.');
|
||||
|
||||
// Check that returned plain text is correct.
|
||||
$text = $this->getTextContent();
|
||||
$this->assertContains('Test page text.', $text);
|
||||
$this->assertNotContains('</html>', $text);
|
||||
|
||||
// Response includes cache tags that we can assert.
|
||||
$this->assertSession()->responseHeaderEquals('X-Drupal-Cache-Tags', 'rendered');
|
||||
|
||||
|
|
Reference in a new issue