Commit 4f60c4af authored by Dan Poltawski's avatar Dan Poltawski
Browse files

MDL-40666 cohort: remove duplicated code from tests

parent 07bbbcf1
......@@ -147,10 +147,6 @@ class core_cohort_external_testcase extends externallib_advanced_testcase {
// Check we retrieve the good total number of enrolled cohorts + no error on capability.
$this->assertEquals(2, count($returnedcohorts));
// Call the external function.
$returnedcohorts = core_cohort_external::get_cohorts(array(
$cohort1->id, $cohort2->id));
foreach ($returnedcohorts as $enrolledcohort) {
if ($enrolledcohort['idnumber'] == $cohort1->idnumber) {
$this->assertEquals($cohort1->name, $enrolledcohort['name']);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment