Skip to content
Snippets Groups Projects
Unverified Commit 84e41d5b authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Close recordsets and coding style

parent d5f6bcaa
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ class tool_lifecycle_trigger_delayedcourses_testcase extends \advanced_testcase
private $triggerinstance;
/** @var processor */
/**@var processor Instance of the lifecycle processor */
private $processor;
public function setUp() {
......@@ -63,6 +63,7 @@ class tool_lifecycle_trigger_delayedcourses_testcase extends \advanced_testcase
$found = true;
}
}
$recordset->close();
$this->assertFalse($found, 'The course should not have passed through since it should not be delay');
}
......@@ -82,6 +83,7 @@ class tool_lifecycle_trigger_delayedcourses_testcase extends \advanced_testcase
$found = true;
}
}
$recordset->close();
$this->assertTrue($found, 'The course should not have passed through in order to delay it');
}
......@@ -101,6 +103,7 @@ class tool_lifecycle_trigger_delayedcourses_testcase extends \advanced_testcase
$found = true;
}
}
$recordset->close();
$this->assertFalse($found, 'The course should not have passed through since it should not be delay');
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment