Línea 36... |
Línea 36... |
36 |
* @dataProvider create_node_array_provider
|
36 |
* @dataProvider create_node_array_provider
|
37 |
* @param \stdClass $gdfile The Google Drive file object
|
37 |
* @param \stdClass $gdfile The Google Drive file object
|
38 |
* @param array $configsettings The googledoc repository config settings that should be set
|
38 |
* @param array $configsettings The googledoc repository config settings that should be set
|
39 |
* @param array|null $expected The expected repository file node array
|
39 |
* @param array|null $expected The expected repository file node array
|
40 |
*/
|
40 |
*/
|
41 |
public function test_create_node_array(\stdClass $gdfile, array $configsettings, ?array $expected) {
|
41 |
public function test_create_node_array(\stdClass $gdfile, array $configsettings, ?array $expected): void {
|
42 |
$this->resetAfterTest();
|
42 |
$this->resetAfterTest();
|
43 |
// Set the required config settings.
|
43 |
// Set the required config settings.
|
44 |
array_walk($configsettings, function($value, $name) {
|
44 |
array_walk($configsettings, function($value, $name) {
|
45 |
set_config($name, $value, 'googledocs');
|
45 |
set_config($name, $value, 'googledocs');
|
46 |
});
|
46 |
});
|