Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 36... Línea 36...
36
     * @dataProvider create_node_array_provider
36
     * @dataProvider create_node_array_provider
37
     * @param \stdClass $gdfolder The Google Drive folder object
37
     * @param \stdClass $gdfolder The Google Drive folder object
38
     * @param string $path The current path
38
     * @param string $path The current path
39
     * @param array $expected The expected repository folder node array
39
     * @param array $expected The expected repository folder node array
40
     */
40
     */
41
    public function test_create_node_array(\stdClass $gdfolder, string $path, array $expected) {
41
    public function test_create_node_array(\stdClass $gdfolder, string $path, array $expected): void {
42
        $foldernode = new folder_node($gdfolder, $path);
42
        $foldernode = new folder_node($gdfolder, $path);
43
        $foldernodearray = $foldernode->create_node_array();
43
        $foldernodearray = $foldernode->create_node_array();
44
        // Assert that the returned repository folder node array by create_node_array() is equal to the expected one.
44
        // Assert that the returned repository folder node array by create_node_array() is equal to the expected one.
45
        $this->assertEquals($expected, $foldernodearray);
45
        $this->assertEquals($expected, $foldernodearray);
46
    }
46
    }