public function ModuleHandlerTest::dependencyProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::dependencyProvider()
Provider for testing dependency parsing.
File
- core/
tests/ Drupal/ Tests/ Core/ Extension/ ModuleHandlerTest.php, line 490 - Contains \Drupal\Tests\Core\Extension\ModuleHandlerTest.
Class
- ModuleHandlerTest
- @coversDefaultClass \Drupal\Core\Extension\ModuleHandler @group Extension
Namespace
Drupal\Tests\Core\ExtensionCode
public function dependencyProvider() {
return array(
array(
'system',
array(
'name' => 'system',
),
),
array(
'taxonomy',
array(
'name' => 'taxonomy',
),
),
array(
'views',
array(
'name' => 'views',
),
),
array(
'views_ui(8.x-1.0)',
array(
'name' => 'views_ui',
'original_version' => ' (8.x-1.0)',
'versions' => array(
array(
'op' => '=',
'version' => '1.0',
),
),
),
),
// Not supported?.
// array('views_ui(8.x-1.1-beta)', array('name' => 'views_ui', 'original_version' => ' (8.x-1.1-beta)', 'versions' => array(array('op' => '=', 'version' => '1.1-beta')))),
array(
'views_ui(8.x-1.1-alpha12)',
array(
'name' => 'views_ui',
'original_version' => ' (8.x-1.1-alpha12)',
'versions' => array(
array(
'op' => '=',
'version' => '1.1-alpha12',
),
),
),
),
array(
'views_ui(8.x-1.1-beta8)',
array(
'name' => 'views_ui',
'original_version' => ' (8.x-1.1-beta8)',
'versions' => array(
array(
'op' => '=',
'version' => '1.1-beta8',
),
),
),
),
array(
'views_ui(8.x-1.1-rc11)',
array(
'name' => 'views_ui',
'original_version' => ' (8.x-1.1-rc11)',
'versions' => array(
array(
'op' => '=',
'version' => '1.1-rc11',
),
),
),
),
array(
'views_ui(8.x-1.12)',
array(
'name' => 'views_ui',
'original_version' => ' (8.x-1.12)',
'versions' => array(
array(
'op' => '=',
'version' => '1.12',
),
),
),
),
array(
'views_ui(8.x-1.x)',
array(
'name' => 'views_ui',
'original_version' => ' (8.x-1.x)',
'versions' => array(
array(
'op' => '<',
'version' => '2.x',
),
array(
'op' => '>=',
'version' => '1.x',
),
),
),
),
array(
'views_ui( <= 8.x-1.x)',
array(
'name' => 'views_ui',
'original_version' => ' ( <= 8.x-1.x)',
'versions' => array(
array(
'op' => '<=',
'version' => '2.x',
),
),
),
),
array(
'views_ui(<= 8.x-1.x)',
array(
'name' => 'views_ui',
'original_version' => ' (<= 8.x-1.x)',
'versions' => array(
array(
'op' => '<=',
'version' => '2.x',
),
),
),
),
array(
'views_ui( <=8.x-1.x)',
array(
'name' => 'views_ui',
'original_version' => ' ( <=8.x-1.x)',
'versions' => array(
array(
'op' => '<=',
'version' => '2.x',
),
),
),
),
array(
'views_ui(>8.x-1.x)',
array(
'name' => 'views_ui',
'original_version' => ' (>8.x-1.x)',
'versions' => array(
array(
'op' => '>',
'version' => '2.x',
),
),
),
),
array(
'drupal:views_ui(>8.x-1.x)',
array(
'project' => 'drupal',
'name' => 'views_ui',
'original_version' => ' (>8.x-1.x)',
'versions' => array(
array(
'op' => '>',
'version' => '2.x',
),
),
),
),
);
}