Skip to content

Commit

Permalink
MDL-40666 cohort: remove duplicated code from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 16, 2013
1 parent 07bbbcf commit 4f60c4a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cohort/tests/externallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ public function test_get_cohorts() {
// 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']);
Expand Down

0 comments on commit 4f60c4a

Please sign in to comment.