MDL-76811 mod_data: Stop testing template creation on field creation

The default template is no longer created when creating the fields with
the generator, so we should stop testing that it is.
This commit is contained in:
Andrew Nicols 2023-01-06 12:51:21 +08:00
parent 103b17c761
commit cec147f428

View File

@ -120,14 +120,6 @@ class generator_test extends \advanced_testcase {
}
$this->assertEquals(count($fieldtypes), $DB->count_records('data_fields', ['dataid' => $data->id]));
$addtemplate = $DB->get_record('data', ['id' => $data->id], 'addtemplate');
$addtemplate = $addtemplate->addtemplate;
for ($i = 1; $i < $count; $i++) {
$fieldname = 'field-' . $i;
$this->assertTrue(strpos($addtemplate, '[[' . $fieldname . ']]') >= 0);
}
}
/**