From cec147f42805ba7fc72f1e973ded5de1567acd51 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 6 Jan 2023 12:51:21 +0800 Subject: [PATCH] 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. --- mod/data/tests/generator_test.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mod/data/tests/generator_test.php b/mod/data/tests/generator_test.php index e80e94cae43..516e15cb91b 100644 --- a/mod/data/tests/generator_test.php +++ b/mod/data/tests/generator_test.php @@ -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); - } } /**