FIX #Fixes silverstripe#814 Fixing automated test for code.

This commit is contained in:
Luke Amos 2019-01-16 14:14:19 +13:00
parent 490d05a3e8
commit 2cb649abbb

View File

@ -175,8 +175,8 @@ class UserDefinedFormTest extends FunctionalTest
$result = $recipient->getEmailTemplateDropdownValues();
// Installation path can be as a project when testing in Travis, so check partial match
$this->assertContains('email' . DIRECTORY_SEPARATOR . 'SubmittedFormEmail', key($result));
$this->assertSame('SubmittedFormEmail', current($result));
$this->assertContains('email' . DIRECTORY_SEPARATOR . 'SubmittedFormEmailHtml', key($result));
$this->assertSame('SubmittedFormEmailHtml', current($result));
}
public function testEmailTemplateExists()