| Línea 31... |
Línea 31... |
| 31 |
* @category test
|
31 |
* @category test
|
| 32 |
* @copyright 2009 The Open University
|
32 |
* @copyright 2009 The Open University
|
| 33 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
33 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 34 |
* @covers \question_state
|
34 |
* @covers \question_state
|
| 35 |
*/
|
35 |
*/
|
| 36 |
class questionstate_test extends \advanced_testcase {
|
36 |
final class questionstate_test extends \advanced_testcase {
|
| 37 |
public function test_is_active(): void {
|
37 |
public function test_is_active(): void {
|
| 38 |
$this->assertFalse(question_state::$notstarted->is_active());
|
38 |
$this->assertFalse(question_state::$notstarted->is_active());
|
| 39 |
$this->assertFalse(question_state::$unprocessed->is_active());
|
39 |
$this->assertFalse(question_state::$unprocessed->is_active());
|
| 40 |
$this->assertTrue(question_state::$todo->is_active());
|
40 |
$this->assertTrue(question_state::$todo->is_active());
|
| 41 |
$this->assertTrue(question_state::$invalid->is_active());
|
41 |
$this->assertTrue(question_state::$invalid->is_active());
|