You are here

public function ModuleRouteSubscriberTest::providerTestRemoveRoute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/EventSubscriber/ModuleRouteSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\ModuleRouteSubscriberTest::providerTestRemoveRoute()

Data provider for testRemoveRoute().

File

core/tests/Drupal/Tests/Core/EventSubscriber/ModuleRouteSubscriberTest.php, line 75
Contains \Drupal\Tests\Core\EventSubscriber\ModuleRouteSubscriberTest.

Class

ModuleRouteSubscriberTest
@coversDefaultClass \Drupal\Core\EventSubscriber\ModuleRouteSubscriber @group EventSubscriber

Namespace

Drupal\Tests\Core\EventSubscriber

Code

public function providerTestRemoveRoute() {
  return array(
    array(
      'enabled',
      array(
        '_module_dependencies' => 'enabled',
      ),
      FALSE,
    ),
    array(
      'disabled',
      array(
        '_module_dependencies' => 'disabled',
      ),
      TRUE,
    ),
    array(
      'enabled_or',
      array(
        '_module_dependencies' => 'disabled,enabled',
      ),
      FALSE,
    ),
    array(
      'enabled_or',
      array(
        '_module_dependencies' => 'enabled,disabled',
      ),
      FALSE,
    ),
    array(
      'disabled_or',
      array(
        '_module_dependencies' => 'disabled,disabled',
      ),
      TRUE,
    ),
    array(
      'enabled_and',
      array(
        '_module_dependencies' => 'enabled+enabled',
      ),
      FALSE,
    ),
    array(
      'enabled_and',
      array(
        '_module_dependencies' => 'enabled+disabled',
      ),
      TRUE,
    ),
    array(
      'enabled_and',
      array(
        '_module_dependencies' => 'disabled+enabled',
      ),
      TRUE,
    ),
    array(
      'disabled_and',
      array(
        '_module_dependencies' => 'disabled+disabled',
      ),
      TRUE,
    ),
    array(
      'no_dependencies',
      array(),
      FALSE,
    ),
  );
}