Skip to content
Browse files

MDL-29538 condition: Fixed up phpunit tests after addition of user fi…

…eld conditions
  • Loading branch information...
1 parent 141d3c8 commit b4aa178e40474fc3ca99bf5539cd116ef2c251c6 Sam Hemelryk committed Jul 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/tests/conditionlib_test.php
View
8 lib/tests/conditionlib_test.php
@@ -71,7 +71,7 @@ function test_constructor() {
(object)array('id'=>$id,'showavailability'=>1,
'availablefrom'=>17,'availableuntil'=>398,'course'=>64,
'conditionsgrade'=>array(), 'conditionscompletion'=>array(),
- 'visible' => 1),
+ 'visible' => 1, 'conditionsfield' => array()),
$test->get_full_course_module());
// just the course_modules stuff; check it doesn't request that from db
@@ -85,7 +85,7 @@ function test_constructor() {
(object)array('id'=>$id,'showavailability'=>0,
'availablefrom'=>2,'availableuntil'=>74,'course'=>38,
'conditionsgrade' => array(), 'conditionscompletion' => array(),
- 'visible' => 1),
+ 'visible' => 1, 'conditionsfield' => array()),
$test->get_full_course_module());
// Now let's add some actual grade/completion conditions
@@ -140,7 +140,7 @@ public function test_section_constructor() {
(object)array('id' => $id, 'showavailability' => 1, 'groupingid' => 13,
'availablefrom' => 17, 'availableuntil' => 398, 'course' => 64,
'conditionsgrade' => array(), 'conditionscompletion' => array(),
- 'visible' => 1),
+ 'visible' => 1, 'conditionsfield' => array()),
$test->get_full_section());
// Just the course_sections stuff; check it doesn't request that from db
@@ -156,7 +156,7 @@ public function test_section_constructor() {
(object)array('id' => $id, 'showavailability' => 0, 'groupingid' => 99,
'availablefrom' => 2, 'availableuntil' => 74, 'course' => 38,
'conditionsgrade' => array(), 'conditionscompletion' => array(),
- 'visible' => 1),
+ 'visible' => 1, 'conditionsfield' => array()),
$test->get_full_section());
// Now let's add some actual grade/completion conditions

0 comments on commit b4aa178

Please sign in to comment.
Something went wrong with that request. Please try again.