function MediaUiReferenceWidgetTest::assertNoHelpTexts

Same name in other branches
  1. 11.x core/modules/media/tests/src/Functional/MediaUiReferenceWidgetTest.php \Drupal\Tests\media\Functional\MediaUiReferenceWidgetTest::assertNoHelpTexts()

Asserts that none of the given texts are present.

@internal

Parameters

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

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

File

core/modules/media/tests/src/Functional/MediaUiReferenceWidgetTest.php, line 309

Class

MediaUiReferenceWidgetTest
Ensures that media UI works correctly.

Namespace

Drupal\Tests\media\Functional

Code

protected function assertNoHelpTexts(array $texts) : void {
    $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.