Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 28... Línea 28...
28
 * @copyright  2015 Frédéric Massart - FMCorz.net
28
 * @copyright  2015 Frédéric Massart - FMCorz.net
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class competency_rule_test extends \externallib_advanced_testcase {
31
class competency_rule_test extends \externallib_advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    public function test_rule_all_matching() {
33
    public function test_rule_all_matching(): void {
Línea 34... Línea 34...
34
        $this->resetAfterTest(true);
34
        $this->resetAfterTest(true);
35
 
35
 
36
        $this->setAdminUser();
36
        $this->setAdminUser();
Línea 80... Línea 80...
80
        // The competency doesn't have saved user competency records.
80
        // The competency doesn't have saved user competency records.
81
        $cr = new competency_rule_all($c13);
81
        $cr = new competency_rule_all($c13);
82
        $this->assertFalse($cr->matches($uc13));
82
        $this->assertFalse($cr->matches($uc13));
83
    }
83
    }
Línea 84... Línea 84...
84
 
84
 
85
    public function test_rule_points_validation() {
85
    public function test_rule_points_validation(): void {
86
        $this->resetAfterTest(true);
86
        $this->resetAfterTest(true);
Línea 87... Línea 87...
87
        $this->setAdminUser();
87
        $this->setAdminUser();
88
 
88
 
Línea 210... Línea 210...
210
            )
210
            )
211
        ));
211
        ));
212
        $this->assertTrue($rule->validate_config($config));
212
        $this->assertTrue($rule->validate_config($config));
213
    }
213
    }
Línea 214... Línea 214...
214
 
214
 
215
    public function test_rule_points_matching() {
215
    public function test_rule_points_matching(): void {
Línea 216... Línea 216...
216
        $this->resetAfterTest(true);
216
        $this->resetAfterTest(true);
217
 
217
 
218
        $this->setAdminUser();
218
        $this->setAdminUser();