Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07bbbcf
)
MDL-40666 cohort: remove duplicated code from tests
author
Dan Poltawski
<dan@moodle.com>
Mon, 15 Jul 2013 08:10:15 +0000
(16:10 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 16 Jul 2013 06:51:59 +0000
(14:51 +0800)
cohort/tests/externallib_test.php
patch
|
blob
|
blame
|
history
diff --git
a/cohort/tests/externallib_test.php
b/cohort/tests/externallib_test.php
index
39c2ef7
..
d2ad955
100644
(file)
--- a/
cohort/tests/externallib_test.php
+++ b/
cohort/tests/externallib_test.php
@@
-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']);