From ed15e64a3d4692fc95042f5df266d7c74bbccb64 Mon Sep 17 00:00:00 2001 From: Andrew Nicols <andrew@nicols.co.uk> Date: Thu, 12 Oct 2017 11:53:06 +0800 Subject: [PATCH] MDL-55356 search: Insert non-empty default data in block fixture data --- search/tests/base_block_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/tests/base_block_test.php b/search/tests/base_block_test.php index 89f97efc954..a7736a7a509 100644 --- a/search/tests/base_block_test.php +++ b/search/tests/base_block_test.php @@ -71,7 +71,7 @@ class base_block_testcase extends advanced_testcase { // Add blocks by hacking table (because it's not a real block type). // 1. Block on course page. - $configdata = base64_encode(serialize(new \stdClass())); + $configdata = base64_encode(serialize((object) ['example' => 'content'])); $instance = (object)['blockname' => 'mockblock', 'parentcontextid' => $coursecontext->id, 'showinsubcontexts' => 0, 'pagetypepattern' => 'course-view-*', 'defaultweight' => 0, 'timecreated' => 1, 'timemodified' => 1,