MDL-62514 behat: Remove potentially conflicting names from description

This commit is contained in:
Andrew Nicols
2019-01-30 08:26:18 +08:00
parent e809dc3394
commit f24c46b406
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ EOD;
}
if (!isset($record['description'])) {
$record['description'] = "Test cohort $i\n$this->loremipsum";
$record['description'] = "Description for '{$record['name']}' \n$this->loremipsum";
}
if (!isset($record['descriptionformat'])) {
+1 -1
View File
@@ -156,7 +156,7 @@ class core_test_generator_testcase extends advanced_testcase {
$this->assertEquals(context_system::instance()->id, $cohort->contextid);
$this->assertRegExp('/^Cohort \d/', $cohort->name);
$this->assertSame('', $cohort->idnumber);
$this->assertRegExp('/^Test cohort \d/', $cohort->description);
$this->assertRegExp("/^Description for '{$cohort->name}' \\n/", $cohort->description);
$this->assertSame(FORMAT_MOODLE, $cohort->descriptionformat);
$this->assertSame('', $cohort->component);
$this->assertLessThanOrEqual(time(), $cohort->timecreated);