Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 31... Línea 31...
31
 * @package    core_cohort
31
 * @package    core_cohort
32
 * @category   phpunit
32
 * @category   phpunit
33
 * @copyright  2012 Petr Skoda {@link http://skodak.org}
33
 * @copyright  2012 Petr Skoda {@link http://skodak.org}
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 */
35
 */
36
class lib_test extends \advanced_testcase {
36
final class lib_test extends \advanced_testcase {
Línea 37... Línea 37...
37
 
37
 
38
    /**
38
    /**
39
     * Create Cohort custom field for testing.
39
     * Create Cohort custom field for testing.
40
     *
40
     *
Línea 691... Línea 691...
691
    }
691
    }
Línea 692... Línea 692...
692
 
692
 
693
    /**
693
    /**
694
     * Test that all get functions return custom fields data.
694
     * Test that all get functions return custom fields data.
-
 
695
     *
-
 
696
     * @covers ::cohort_get_cohort
695
     *
697
     * @covers ::cohort_get_cohorts
696
     * @covers \cohort_get_cohort, \cohort_get_cohorts, \cohort_get_all_cohorts
698
     * @covers ::cohort_get_all_cohorts
-
 
699
     * @covers ::cohort_get_available_cohorts
697
     * @covers \cohort_get_available_cohorts, \cohort_get_user_cohorts
700
     * @covers ::cohort_get_user_cohorts
698
     */
701
     */
699
    public function test_get_functions_return_custom_fields(): void {
702
    public function test_get_functions_return_custom_fields(): void {
700
        $this->resetAfterTest();
703
        $this->resetAfterTest();
Línea 910... Línea 913...
910
    }
913
    }
Línea 911... Línea 914...
911
 
914
 
912
    /**
915
    /**
913
     * Test that lib function returns custom field data for a cohorts.
916
     * Test that lib function returns custom field data for a cohorts.
914
     *
917
     *
915
     * @covers \cohort_get_custom_fields_data
918
     * @covers ::cohort_get_custom_fields_data
916
     */
919
     */
917
    public function test_cohort_get_custom_fields_data(): void {
920
    public function test_cohort_get_custom_fields_data(): void {
918
        $this->resetAfterTest();
921
        $this->resetAfterTest();