Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 25... Línea 25...
25
 * @category  test
25
 * @category  test
26
 * @copyright 2013 Petr Skoda {@link http://skodak.org}
26
 * @copyright 2013 Petr Skoda {@link http://skodak.org}
27
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
28
 */
29
class preset_test extends \advanced_testcase {
29
class preset_test extends \advanced_testcase {
30
    public function test_xml() {
30
    public function test_xml(): void {
31
        global $DB;
31
        global $DB;
Línea 32... Línea 32...
32
 
32
 
Línea 33... Línea 33...
33
        $roles = $DB->get_records('role');
33
        $roles = $DB->get_records('role');
Línea 79... Línea 79...
79
 
79
 
80
    /**
80
    /**
81
     * Tests covered method.
81
     * Tests covered method.
82
     * @covers \core_role_preset::parse_preset
82
     * @covers \core_role_preset::parse_preset
83
     */
83
     */
84
    public function test_mixed_levels() {
84
    public function test_mixed_levels(): void {
85
        // The problem here is that we cannot guarantee plugin contexts
85
        // The problem here is that we cannot guarantee plugin contexts
86
        // have unique short names, so we have to also support level numbers.
86
        // have unique short names, so we have to also support level numbers.
87
        $xml = file_get_contents(__DIR__ . '/fixtures/mixed_levels.xml');
87
        $xml = file_get_contents(__DIR__ . '/fixtures/mixed_levels.xml');