X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FTests%2FMetatagForumTest.php;fp=web%2Fmodules%2Fcontrib%2Fmetatag%2Fsrc%2FTests%2FMetatagForumTest.php;h=662cfc9421323297d4bcf540fcec80315052aa49;hp=b6662b87bb2504fe785bed4cfe91f386fb9604c5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/modules/contrib/metatag/src/Tests/MetatagForumTest.php b/web/modules/contrib/metatag/src/Tests/MetatagForumTest.php index b6662b87b..662cfc942 100644 --- a/web/modules/contrib/metatag/src/Tests/MetatagForumTest.php +++ b/web/modules/contrib/metatag/src/Tests/MetatagForumTest.php @@ -61,7 +61,7 @@ class MetatagForumTest extends WebTestBase { /** * Verify that a forum post can be loaded when Metatag is enabled. */ - function testForumPost() { + public function testForumPost() { $this->drupalGet('node/add/forum'); $this->assertResponse(200); $edit = [ @@ -69,7 +69,8 @@ class MetatagForumTest extends WebTestBase { 'taxonomy_forums' => 1, 'body[0][value]' => 'Just testing.', ]; - $this->drupalPostForm(NULL, $edit, t('Save and publish')); + $save_label = (floatval(\Drupal::VERSION) <= 8.3) ? t('Save and publish') : t('Save'); + $this->drupalPostForm(NULL, $edit, $save_label); $this->assertResponse(200); $this->assertText(t('@type @title has been created.', ['@type' => t('Forum topic'), '@title' => 'Testing forums'])); }