function AssertLegacyTrait::assertNoRaw

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php \Drupal\FunctionalTests\AssertLegacyTrait::assertNoRaw()

Passes if the raw text IS not found on the loaded page, fail otherwise.

Raw text refers to the raw HTML that the page generated.

Parameters

string $raw: Raw (HTML) string to look for.

Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead.

134 calls to AssertLegacyTrait::assertNoRaw()
AddFeedTest::testFeedLabelEscaping in core/modules/aggregator/tests/src/Functional/AddFeedTest.php
Ensures that the feed label is escaping when rendering the feed icon.
AdminPathEntityConverterLanguageTest::testConfigUsingCurrentLanguage in core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php
Tests the translated and untranslated config entities are loaded properly.
AjaxPageStateTest::testHtml5ShivIsNotLoaded in core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
Give ajax_page_state[libraries]=core/html5shiv to exclude the library.
AjaxPageStateTest::testMultipleLibrariesAreNotLoaded in core/modules/system/tests/src/Functional/Render/AjaxPageStateTest.php
Test if multiple libraries can be excluded.
ArgumentDefaultTest::testArgumentDefaultNoOptions in core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
Tests the use of a default argument plugin that provides no options.

... See full list

1 method overrides AssertLegacyTrait::assertNoRaw()
UncaughtExceptionTest::assertNoRaw in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Passes if the raw text IS not found on the loaded page, fail otherwise.

File

core/tests/Drupal/FunctionalTests/AssertLegacyTrait.php, line 329

Class

AssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\FunctionalTests

Code

protected function assertNoRaw($raw) {
    $this->assertSession()
        ->responseNotContains($raw);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.