public function ContrivedControllerTest::provideTestHandCount in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/testing_example/tests/src/Unit/Controller/ContrivedControllerTest.php \Drupal\Tests\testing_example\Unit\Controller\ContrivedControllerTest::provideTestHandCount()
Data provider for testHandCount().
File
- testing_example/
tests/ src/ Unit/ Controller/ ContrivedControllerTest.php, line 41
Class
- ContrivedControllerTest
- The class to test ContrivedController.
Namespace
Drupal\Tests\testing_example\Unit\ControllerCode
public function provideTestHandCount() {
return [
[
'I can count these on one hand.',
0,
0,
],
[
'I can count these on one hand.',
1,
0,
],
[
'I can count these on one hand.',
0,
1,
],
[
'I need two hands to count these.',
5,
5,
],
[
'That\'s just too many numbers to count.',
5,
6,
],
[
'That\'s just too many numbers to count.',
6,
5,
],
];
}