You are here

public function MediaUiFunctionalTest::assertNoHelpTexts in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php \Drupal\Tests\media\Functional\MediaUiFunctionalTest::assertNoHelpTexts()

Asserts that none of the given texts are present.

Parameters

string[] $texts: A list of the help texts to check.

1 call to MediaUiFunctionalTest::assertNoHelpTexts()
MediaUiFunctionalTest::testMediaReferenceWidget in core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php
Tests the default autocomplete widgets for media reference fields.

File

core/modules/media/tests/src/Functional/MediaUiFunctionalTest.php, line 500

Class

MediaUiFunctionalTest
Ensures that media UI works correctly.

Namespace

Drupal\Tests\media\Functional

Code

public function assertNoHelpTexts(array $texts) {
  $assert_session = $this
    ->assertSession();
  foreach ($texts as $text) {
    $assert_session
      ->pageTextNotContains($text);
  }
}