Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 28... Línea 28...
28
 
28
 
Línea 29... Línea 29...
29
require_once('all_checks.php');
29
require_once('all_checks.php');
30
 
30
 
-
 
31
/**
-
 
32
 * Class i_is_not_used_testcase
31
/**
33
 *
32
 * Class i_is_not_used_testcase
34
 * @covers \tool_brickfield\local\htmlchecker\common\checks\i_is_not_used
33
 */
35
 */
34
class i_is_not_used_test extends all_checks {
36
final class i_is_not_used_test extends all_checks {
Línea 35... Línea 37...
35
    /** @var string Check type */
37
    /** @var string Check type */
36
    protected $checktype = 'i_is_not_used';
38
    protected $checktype = 'i_is_not_used';
Línea 69... Línea 71...
69
        $this->assertTrue($results[0]->element->tagName == 'i');
71
        $this->assertTrue($results[0]->element->tagName == 'i');
Línea 70... Línea 72...
70
 
72
 
71
        $results = $this->get_checker_results($this->htmlpass);
73
        $results = $this->get_checker_results($this->htmlpass);
72
        $this->assertEmpty($results);
74
        $this->assertEmpty($results);
-
 
75
    }
-
 
76
 
-
 
77
    /**
-
 
78
     * Test for font awesome icon.
-
 
79
     */
-
 
80
    public function test_fa_icon(): void {
-
 
81
        $html = '<div><i class="fa fa-user"></i><i>Hello there</i><i class="fa fa-address-book" aria-hidden="true"></i></div>';
-
 
82
        $results = $this->get_checker_results($html);
-
 
83
        $this->assertCount(2, $results);
73
    }
84
    }