function MediaUiFunctionalTest::assertNoHelpTexts

Same name in other branches
  1. 9 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 494

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);
    }
}

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