You are here

public function BrowserTestBaseTest::testAssertFieldsByValue in Drupal 9

Tests legacy assertFieldsByValue().

@group legacy

File

core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php, line 369

Class

BrowserTestBaseTest
Tests BrowserTestBase functionality.

Namespace

Drupal\FunctionalTests

Code

public function testAssertFieldsByValue() {
  $this
    ->expectDeprecation('AssertLegacyTrait::assertFieldsByValue() is deprecated in drupal:8.3.0 and is removed from drupal:10.0.0. Use iteration over the fields yourself instead and directly check the values in the test. See https://www.drupal.org/node/3129738');
  $this
    ->drupalGet('test-field-xpath');
  $this
    ->assertFieldsByValue($this
    ->xpath("//h1[@class = 'page-title']"), NULL);
}