mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 16:10:15 +01:00
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:
parent
e8ea4916e9
commit
cd42aa554f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user