mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-73054 repository_googledocs: avoid $OUTPUT use in data provider.
This commit is contained in:
parent
7013bda35b
commit
8b2423c7a1
@ -35,14 +35,14 @@ abstract class repository_googledocs_testcase extends \advanced_testcase {
|
||||
protected function create_folder_content_node_array(string $id, string $name, string $path,
|
||||
string $modified = ''): array {
|
||||
|
||||
global $OUTPUT;
|
||||
global $CFG, $OUTPUT;
|
||||
|
||||
return [
|
||||
'id' => $id,
|
||||
'title' => $name,
|
||||
'path' => repository_googledocs\helper::build_node_path($id, $name, $path),
|
||||
'date' => $modified,
|
||||
'thumbnail' => $OUTPUT->image_url(file_folder_icon(64))->out(false),
|
||||
'thumbnail' => "{$CFG->wwwroot}/theme/image.php/_s/boost/core/1/" . file_folder_icon(64),
|
||||
'thumbnail_height' => 64,
|
||||
'thumbnail_width' => 64,
|
||||
'children' => [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user