public function DefaultLazyPluginCollectionTest::providerTestSortHelper in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::providerTestSortHelper()
Provides test data for testSortHelper.
Return value
array The test data.
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultLazyPluginCollectionTest.php, line 65 - Contains \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest.
Class
- DefaultLazyPluginCollectionTest
- @coversDefaultClass \Drupal\Core\Plugin\DefaultLazyPluginCollection @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function providerTestSortHelper() {
return array(
array(
'apple',
'apple',
0,
),
array(
'apple',
'cherry',
-1,
),
array(
'cherry',
'apple',
1,
),
array(
'cherry',
'banana',
1,
),
);
}