MDL-70070 phpunit: correct data provider method names.

They should not be prefixed `test_` because that's how actual
test methods containing assertions are identified by PHPUnit.
This commit is contained in:
Paul Holden
2023-01-16 08:28:31 +00:00
parent 4b69c11978
commit 70a5e38b2c
26 changed files with 120 additions and 179 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ class manager_test extends \advanced_testcase {
*
* @return array
*/
public function test_get_candidate_adhoc_tasks_provider(): array {
public function get_candidate_adhoc_tasks_provider(): array {
return [
[
'concurrencylimit' => 5,
@@ -205,7 +205,7 @@ class manager_test extends \advanced_testcase {
/**
* Test that the candidate adhoc tasks are returned in the right order.
*
* @dataProvider test_get_candidate_adhoc_tasks_provider
* @dataProvider get_candidate_adhoc_tasks_provider
*
* @param int $concurrencylimit The max number of runners each task can consume
* @param int $limit SQL limit