public function ActionUpgradePathTest::testActionUpgrade

Tests to see if actions were upgrade.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/ActionUpgradePathTest.php, line 34
Contains \Drupal\system\Tests\Upgrade\ActionUpgradePathTest.

Class

ActionUpgradePathTest
Tests the upgrade path of actions.

Namespace

Drupal\system\Tests\Upgrade

Code

public function testActionUpgrade() {
  $this
    ->assertTrue($this
    ->performUpgrade(), 'The upgrade was completed successfully.');
  $this
    ->drupalGet('admin/people');
  $elements = $this
    ->xpath('//select[@name="action"]/option');
  $this
    ->assertTrue(!empty($elements), 'The user actions were upgraded.');
}