MDL-20636 remove tests for obsolete functions #436
authorColin Chambers <c.chambers@open.ac.uk>
Fri, 8 Apr 2011 14:28:48 +0000 (15:28 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 8 Apr 2011 15:21:36 +0000 (16:21 +0100)
lib/simpletest/testquestionlib.php

index 703d5cb..5941e8d 100644 (file)
@@ -54,71 +54,6 @@ class questionlib_test extends UnitTestCase {
                 array(0 => 't1', 1 => 't2', 2 => 't3'));
     }
 
-    function test_question_state_is_closed() {
-        $state = new stdClass();
-        $state->event = QUESTION_EVENTOPEN;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTNAVIGATE;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTSAVE;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTGRADE;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTDUPLICATE;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTVALIDATE;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTSUBMIT;
-        $this->assertFalse(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTCLOSEANDGRADE;
-        $this->assertTrue(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTCLOSE;
-        $this->assertTrue(question_state_is_closed($state));
-
-        $state->event = QUESTION_EVENTMANUALGRADE;
-        $this->assertTrue(question_state_is_closed($state));
-
-    }
-    function test_question_state_is_graded() {
-        $state = new stdClass();
-        $state->event = QUESTION_EVENTOPEN;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTNAVIGATE;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTSAVE;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTDUPLICATE;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTVALIDATE;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTSUBMIT;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTCLOSE;
-        $this->assertFalse(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTCLOSEANDGRADE;
-        $this->assertTrue(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTMANUALGRADE;
-        $this->assertTrue(question_state_is_graded($state));
-
-        $state->event = QUESTION_EVENTGRADE;
-        $this->assertTrue(question_state_is_graded($state));
-    }
 }