Skip to content

Commit

Permalink
MDL-76811 mod_data: Remove duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 10, 2023
1 parent e719cbb commit fe6d102
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mod/data/tests/generator_test.php
Expand Up @@ -179,13 +179,10 @@ public function test_create_entry() {
$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 = [];
Expand Down

0 comments on commit fe6d102

Please sign in to comment.