Question creation test.
{
global $ilDB;
include_once './Modules/TestQuestionPool/classes/class.assSingleChoice.php';
$this->assertGreaterThan(0, $insert_id);
if ($insert_id > 0)
{
$sc->loadFromDb($insert_id);
$this->assertEquals($sc->getPoints(),1);
$this->assertEquals($sc->getTitle(),"unit test single choice question");
$this->assertEquals($sc->getComment(),"unit test single choice question comment");
$this->assertEquals($sc->getAuthor(),"Helmut Schottmüller");
$this->assertEquals($sc->getQuestion(),"<p>is a <strong>unit test</strong> required?</p>");
$this->assertEquals(count($sc->getAnswers()), 2);
}
}