Merge pull request #334 from creative-commoners/pulls/3.7/cherry-pick

MNT Fix unit test
This commit is contained in:
Steve Boyd 2021-11-29 17:25:45 +13:00 committed by GitHub
commit 421e08cba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ class CommentsExtensionTest extends FunctionalTest
// The comments form is HTML to do assertions by contains // The comments form is HTML to do assertions by contains
$cf = (string) $item->CommentsForm(); $cf = (string) $item->CommentsForm();
$expected = '/comments/CommentsForm/" method="post" enctype="application/x-www-form-urlencoded">'; $expected = '/comments/CommentsForm/" method="POST" enctype="application/x-www-form-urlencoded">';
$this->assertStringContainsString($expected, $cf); $this->assertStringContainsString($expected, $cf);
$this->assertStringContainsString('<h4>Post your comment</h4>', $cf); $this->assertStringContainsString('<h4>Post your comment</h4>', $cf);