mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +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
103b17c761
commit
cec147f428
@ -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