function OptionsFieldUIAllowedValuesTest::assertAllowValuesRowCount

Same name in other branches
  1. 11.x core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php \Drupal\Tests\options\FunctionalJavascript\OptionsFieldUIAllowedValuesTest::assertAllowValuesRowCount()

Assert the count of the allowed values rows.

Parameters

int $expected_count: The expected row count.

1 call to OptionsFieldUIAllowedValuesTest::assertAllowValuesRowCount()
OptionsFieldUIAllowedValuesTest::testOptionsAllowedValues in core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php
Tests option types allowed values.

File

core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php, line 343

Class

OptionsFieldUIAllowedValuesTest
Tests the Options field allowed values UI functionality.

Namespace

Drupal\Tests\options\FunctionalJavascript

Code

private function assertAllowValuesRowCount(int $expected_count) : void {
    $this->assertCount($expected_count, $this->getSession()
        ->getPage()
        ->findAll('css', '#allowed-values-order tr.draggable'));
}

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