mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-73054 repository_googledocs: avoid $OUTPUT use in data provider.
This commit is contained in:
parent
7013bda35b
commit
8b2423c7a1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
protected function create_folder_content_node_array(string $id, string $name, string $path,
|
||||||
string $modified = ''): array {
|
string $modified = ''): array {
|
||||||
|
|
||||||
global $OUTPUT;
|
global $CFG, $OUTPUT;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'title' => $name,
|
'title' => $name,
|
||||||
'path' => repository_googledocs\helper::build_node_path($id, $name, $path),
|
'path' => repository_googledocs\helper::build_node_path($id, $name, $path),
|
||||||
'date' => $modified,
|
'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_height' => 64,
|
||||||
'thumbnail_width' => 64,
|
'thumbnail_width' => 64,
|
||||||
'children' => [],
|
'children' => [],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue