diff --git a/tests/observer_test.php b/tests/observer_test.php index 728df3e..24be36c 100644 --- a/tests/observer_test.php +++ b/tests/observer_test.php @@ -115,6 +115,8 @@ public function test_tag_added() { core_tag_tag::set_item_tags('core', 'course', $course1->id, \context_course::instance($course1->id), [$tagname]); $tag = $DB->get_record('tag', ['name' => $tagname]); + $this->assertNotEmpty($tag); + $cohort = $DB->get_record('cohort', ['name' => $tagname]); $this->assertNotEmpty($cohort);