Drupal\FunctionalTests\AssertLegacyTrait::assertText

Authoritative Drupal Source Record source-derived authoritative record

Projected verbatim from an official Drupal source snapshot. It is authoritative evidence about Drupal, but it is not a Drupal Knowledge rule.

method deprecated in 8.2.0, removed from 10.0.0

Record api-lifecycle.347033c93f939a2e

What this is

What is this
source-derived authoritative record: Drupal\FunctionalTests\AssertLegacyTrait::assertText
Why it exists
Drupal core annotates this symbol with a deprecation, and api.drupal.org publishes the annotation.
What makes it authoritative
Projected verbatim from an official Drupal source snapshot. It is authoritative evidence about Drupal, but it is not a Drupal Knowledge rule.
Project scope
Nothing: this record is about Drupal, not about any one project.
Recommended next step
Check whether your custom code uses the symbol with `dk migration-analyze`; a deprecation matters only where the code actually calls it.
Was anything changed
No. Querying Drupal Knowledge changes nothing.

What is not known

  • Nothing was left unstated by this record.

What the record states

Values as published by the source. Blank means the source did not say.
Drupal core filecore/tests/Drupal/FunctionalTests/AssertLegacyTrait.php
Deprecated in8.2.0
Kindmethod
Fully qualified nameDrupal\FunctionalTests\AssertLegacyTrait::assertText
Removed from10.0.0
Replacement$this->assertSession()->responseContains() for non-HTML responses, like XML or Json. $this->assertSession()->pageTextContains() for HTML responses. Unlike the deprecated assertText(), the passed text should be HTML decoded, exactly as a human sees it in the browser
Replacement statestated
SymbolAssertLegacyTrait::assertText

Provenance

The snapshot digest identifies the exact bytes this record was derived from, so the claim can be checked rather than believed.

Only relationships the canonical records already declare. Nothing here is inferred.

Derived from source