MDL-61667 analytics: Deprecate the add_builtin_models() method
[moodle.git] / analytics / tests / model_test.php
index 2fc0fa9..8eaac08 100644 (file)
@@ -272,14 +272,6 @@ class analytics_model_testcase extends advanced_testcase {
     public function test_exists() {
         $this->resetAfterTest(true);
 
-        global $DB;
-
-        $count = $DB->count_records('analytics_models');
-
-        // No new models added if the builtin ones already exist.
-        \core_analytics\manager::add_builtin_models();
-        $this->assertCount($count, $DB->get_records('analytics_models'));
-
         $target = \core_analytics\manager::get_target('\core\analytics\target\no_teaching');
         $this->assertTrue(\core_analytics\model::exists($target));
     }