protected function EntityBrowserWebDriverTestBase::assertRadioExistsByValue in Entity Browser 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/EntityBrowserWebDriverTestBase.php \Drupal\Tests\entity_browser\FunctionalJavascript\EntityBrowserWebDriverTestBase::assertRadioExistsByValue()
 
Checks that a specific radio input element exists on the current page.
Parameters
string $value: The string value of the radio element.
Return value
\Behat\Mink\Element\NodeElement The radio input form element.
Throws
\Behat\Mink\Exception\ElementNotFoundException
3 calls to EntityBrowserWebDriverTestBase::assertRadioExistsByValue()
- CardinalityTest::testEntityEmbed in tests/
src/ FunctionalJavascript/ CardinalityTest.php  - Tests cardinality functionality using Entity Embed button.
 - CardinalityTest::testEntityReferenceWidget in tests/
src/ FunctionalJavascript/ CardinalityTest.php  - Tests Entity Reference widget.
 - CardinalityTest::testInlineEntityForm in tests/
src/ FunctionalJavascript/ CardinalityTest.php  - Tests cardinality functionality using Inline Entity Form.
 
File
- tests/
src/ FunctionalJavascript/ EntityBrowserWebDriverTestBase.php, line 247  
Class
- EntityBrowserWebDriverTestBase
 - Base class for Entity browser Javascript functional tests.
 
Namespace
Drupal\Tests\entity_browser\FunctionalJavascriptCode
protected function assertRadioExistsByValue($value) {
  $value = (string) $value;
  return $this
    ->assertSession()
    ->elementExists('xpath', "//input[contains(@type, 'radio') and contains(@value, '" . $value . "')]");
}