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
    /**
28
    /**
29
     * Ensure that a renderer factory is returned.
29
     * Ensure that a renderer factory is returned.
30
     *
30
     *
31
     * @covers ::get_renderer_factory
31
     * @covers ::get_renderer_factory
32
     */
32
     */
33
    public function test_get_renderer_factory() {
33
    public function test_get_renderer_factory(): void {
34
        $this->assertInstanceOf(\mod_forum\local\factories\renderer::class, \mod_forum\local\container::get_renderer_factory());
34
        $this->assertInstanceOf(\mod_forum\local\factories\renderer::class, \mod_forum\local\container::get_renderer_factory());
35
    }
35
    }
Línea 36... Línea 36...
36
 
36
 
37
    /**
37
    /**
38
     * Ensure that a legacy_data_mapper_factory factory is returned.
38
     * Ensure that a legacy_data_mapper_factory factory is returned.
39
     *
39
     *
40
     * @covers ::get_legacy_data_mapper_factory
40
     * @covers ::get_legacy_data_mapper_factory
41
     */
41
     */
42
    public function test_get_legacy_data_mapper_factory() {
42
    public function test_get_legacy_data_mapper_factory(): void {
43
        $this->assertInstanceOf(
43
        $this->assertInstanceOf(
44
            \mod_forum\local\factories\legacy_data_mapper::class,
44
            \mod_forum\local\factories\legacy_data_mapper::class,
45
            \mod_forum\local\container::get_legacy_data_mapper_factory()
45
            \mod_forum\local\container::get_legacy_data_mapper_factory()
46
        );
46
        );
Línea 49... Línea 49...
49
    /**
49
    /**
50
     * Ensure that a exporter factory is returned.
50
     * Ensure that a exporter factory is returned.
51
     *
51
     *
52
     * @covers ::get_exporter_factory
52
     * @covers ::get_exporter_factory
53
     */
53
     */
54
    public function test_get_exporter_factory() {
54
    public function test_get_exporter_factory(): void {
55
        $this->assertInstanceOf(\mod_forum\local\factories\exporter::class, \mod_forum\local\container::get_exporter_factory());
55
        $this->assertInstanceOf(\mod_forum\local\factories\exporter::class, \mod_forum\local\container::get_exporter_factory());
56
    }
56
    }
Línea 57... Línea 57...
57
 
57
 
58
    /**
58
    /**
59
     * Ensure that a vault factory is returned.
59
     * Ensure that a vault factory is returned.
60
     *
60
     *
61
     * @covers ::get_vault_factory
61
     * @covers ::get_vault_factory
62
     */
62
     */
63
    public function test_get_vault_factory() {
63
    public function test_get_vault_factory(): void {
64
        $this->assertInstanceOf(\mod_forum\local\factories\vault::class, \mod_forum\local\container::get_vault_factory());
64
        $this->assertInstanceOf(\mod_forum\local\factories\vault::class, \mod_forum\local\container::get_vault_factory());
Línea 65... Línea 65...
65
    }
65
    }
66
 
66
 
67
    /**
67
    /**
68
     * Ensure that a manager factory is returned.
68
     * Ensure that a manager factory is returned.
69
     *
69
     *
70
     * @covers ::get_manager_factory
70
     * @covers ::get_manager_factory
71
     */
71
     */
72
    public function test_get_manager_factory() {
72
    public function test_get_manager_factory(): void {
Línea 73... Línea 73...
73
        $this->assertInstanceOf(\mod_forum\local\factories\manager::class, \mod_forum\local\container::get_manager_factory());
73
        $this->assertInstanceOf(\mod_forum\local\factories\manager::class, \mod_forum\local\container::get_manager_factory());
74
    }
74
    }
75
 
75
 
76
    /**
76
    /**
77
     * Ensure that a entity factory is returned.
77
     * Ensure that a entity factory is returned.
78
     *
78
     *
79
     * @covers ::get_entity_factory
79
     * @covers ::get_entity_factory
80
     */
80
     */
Línea 81... Línea 81...
81
    public function test_get_entity_factory() {
81
    public function test_get_entity_factory(): void {
82
        $this->assertInstanceOf(\mod_forum\local\factories\entity::class, \mod_forum\local\container::get_entity_factory());
82
        $this->assertInstanceOf(\mod_forum\local\factories\entity::class, \mod_forum\local\container::get_entity_factory());
83
    }
83
    }
84
 
84
 
85
    /**
85
    /**
86
     * Ensure that a builder factory is returned.
86
     * Ensure that a builder factory is returned.
87
     *
87
     *
88
     * @covers ::get_builder_factory
88
     * @covers ::get_builder_factory
Línea 89... Línea 89...
89
     */
89
     */
90
    public function test_get_builder_factory() {
90
    public function test_get_builder_factory(): void {
91
        $this->assertInstanceOf(\mod_forum\local\factories\builder::class, \mod_forum\local\container::get_builder_factory());
91
        $this->assertInstanceOf(\mod_forum\local\factories\builder::class, \mod_forum\local\container::get_builder_factory());
92
    }
92
    }
93
 
93
 
94
    /**
94
    /**
95
     * Ensure that a url factory is returned.
95
     * Ensure that a url factory is returned.
96
     *
96
     *
97
     * @covers ::get_url_factory
97
     * @covers ::get_url_factory