mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
MDL-76811 mod_data: Remove duplicate tests
This commit is contained in:
parent
cd42aa554f
commit
d9ae9e51cd
@ -171,13 +171,10 @@ class generator_test extends \advanced_testcase {
|
||||
$record->type = $fieldtype;
|
||||
$record->required = 1;
|
||||
|
||||
${$fieldname} = $this->getDataGenerator()->get_plugin_generator('mod_data')->create_field($record, $data);
|
||||
$this->assertInstanceOf('data_field_' . $fieldtype, ${$fieldname});
|
||||
$this->getDataGenerator()->get_plugin_generator('mod_data')->create_field($record, $data);
|
||||
$count++;
|
||||
}
|
||||
|
||||
$this->assertEquals(count($fieldtypes), $DB->count_records('data_fields', ['dataid' => $data->id]));
|
||||
|
||||
$fields = $DB->get_records('data_fields', ['dataid' => $data->id], 'id');
|
||||
|
||||
$contents = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user