Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 27... Línea 27...
27
class printable_test extends \advanced_testcase {
27
class printable_test extends \advanced_testcase {
Línea 28... Línea 28...
28
 
28
 
29
    /**
29
    /**
30
     * Test tool name.
30
     * Test tool name.
31
     */
31
     */
32
    public function test_toolname() {
32
    public function test_toolname(): void {
Línea 33... Línea 33...
33
        $this->resetAfterTest();
33
        $this->resetAfterTest();
34
 
34
 
35
        $object = new printable();
35
        $object = new printable();
36
        $output = $object->toolname();
36
        $output = $object->toolname();
Línea 37... Línea 37...
37
        $this->assertEquals($output, 'Summary report');
37
        $this->assertEquals($output, 'Summary report');
38
    }
38
    }
39
 
39
 
40
    /**
40
    /**
41
     * Test tool short name.
41
     * Test tool short name.
Línea 42... Línea 42...
42
     */
42
     */
43
    public function test_toolshortname() {
43
    public function test_toolshortname(): void {
44
        $this->resetAfterTest();
44
        $this->resetAfterTest();
45
 
45
 
Línea 46... Línea 46...
46
        $object = new printable();
46
        $object = new printable();
47
        $output = $object->toolshortname();
47
        $output = $object->toolshortname();
48
        $this->assertEquals($output, 'Summary report');
48
        $this->assertEquals($output, 'Summary report');
49
    }
49
    }
50
 
50
 
Línea 51... Línea 51...
51
    /**
51
    /**
52
     * Test plugin name.
52
     * Test plugin name.
53
     */
53
     */
Línea 75... Línea 75...
75
    }
75
    }
Línea 76... Línea 76...
76
 
76
 
77
    /**
77
    /**
78
     * Test get output.
78
     * Test get output.
79
     */
79
     */
80
    public function test_get_output() {
80
    public function test_get_output(): void {
81
        $this->resetAfterTest();
81
        $this->resetAfterTest();
Línea 82... Línea 82...
82
        $category = $this->getDataGenerator()->create_category();
82
        $category = $this->getDataGenerator()->create_category();
83
 
83