You are here

protected function MigrateUpgradeEckTest::getReviewFormXpath in Entity Construction Kit (ECK) 8

Prepares xpath for review forms.

Builds xpath to catch two possible tags (td and span) to support different versions of Drupal core.

1 call to MigrateUpgradeEckTest::getReviewFormXpath()
MigrateUpgradeEckTest::assertReviewForm in tests/src/Functional/MigrateUpgradeEckTest.php
Helper to assert content on the Review form.

File

tests/src/Functional/MigrateUpgradeEckTest.php, line 299

Class

MigrateUpgradeEckTest
Tests ECK upgrade using the migrate UI.

Namespace

Drupal\Tests\eck\Functional

Code

protected function getReviewFormXpath($common_xpath) {
  $parts = [];
  foreach ([
    'span',
    'td',
  ] as $tag) {
    $parts[] = "//{$tag}{$common_xpath}";
  }
  return implode('|', $parts);
}