You are here

protected function ScheduledUpdatesTestBase::checkRunnersAvailable in Scheduled Updates 8

Check that a set of runner plugins are on form and no extras.

Parameters

array $expected_runners:

3 calls to ScheduledUpdatesTestBase::checkRunnersAvailable()
AddFieldScheduledUpdateTypeTest::checkAddUpdateField in tests/src/FunctionalJavascript/AddFieldScheduledUpdateTypeTest.php
Test to check from manage fields on Node.
EmbeddedScheduledUpdateTypeTest::createType in tests/src/FunctionalJavascript/EmbeddedScheduledUpdateTypeTest.php
Create a scheduled update type via the UI.
ScheduledUpdatesTestBase::createType in tests/src/FunctionalJavascript/ScheduledUpdatesTestBase.php

File

tests/src/FunctionalJavascript/ScheduledUpdatesTestBase.php, line 217
Contains \Drupal\Tests\scheduled_updates\ScheduledUpdatesTestBase.

Class

ScheduledUpdatesTestBase
Define base class for Scheduled Updates Tests

Namespace

Drupal\Tests\scheduled_updates\FunctionalJavascript

Code

protected function checkRunnersAvailable(array $expected_runners = []) {
  $all_runners = [
    'default_embedded',
    'default_independent',
    'latest_revision',
  ];
  if (!$expected_runners) {
    $expected_runners = $all_runners;
  }
  $unexpected_runners = array_diff($all_runners, $expected_runners);
  $this
    ->checkExpectedRadioOptions('update_runner[id]', $expected_runners, $unexpected_runners);
}