Loading sources/content/tests/src/Functional/ContentTmgmtEntitySourceNoCanonicalLinkTest.php +1 −1 Changes for sources/content/tests/src/Functional/ContentTmgmtEntitySourceNoCanonicalLinkTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ class ContentTmgmtEntitySourceNoCanonicalLinkTest extends TMGMTTestBase { $this->assertSession()->pageTextNotContains('Translation publish status'); $this->assertNoField('edit-moderation-state-new-state'); $this->submitForm([], 'Save as completed'); $this->assertTitle($entity->label() . ' (English to German, Finished) | Drupal'); $this->assertSession()->titleEquals($entity->label() . ' (English to German, Finished) | Drupal'); $this->assertSession()->pageTextContains('The translation for name english has been accepted as de(de-ch): name english.'); } } sources/content/tests/src/Functional/ContentTmgmtEntitySourceUiTest.php +2 −2 Changes for sources/content/tests/src/Functional/ContentTmgmtEntitySourceUiTest.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -864,7 +864,7 @@ class ContentTmgmtEntitySourceUiTest extends TMGMTTestBase { $job->settings->action = 'translate'; $job->save(); $job->requestTranslation(); $this->assertTitle(t("Preview of @title for @target_language | Drupal", [ $this->assertSession()->titleEquals((string) t("Preview of @title for @target_language | Drupal", [ '@title' => $node->getTitle(), '@target_language' => $job->getTargetLanguage()->getName(), ])); Loading @@ -878,7 +878,7 @@ class ContentTmgmtEntitySourceUiTest extends TMGMTTestBase { $key = \Drupal::service('tmgmt_content.key_access')->getKey($job_item); $this->drupalGet(URL::fromRoute('tmgmt_content.job_item_preview', ['tmgmt_job_item' => $job_item->id()], ['query' => ['key' => $key]])); $this->assertSession()->statusCodeEquals(200); $this->assertTitle(t("Preview of @title for @target_language | Drupal", [ $this->assertSession()->titleEquals((string) t("Preview of @title for @target_language | Drupal", [ '@title' => $node->getTitle(), '@target_language' => $job->getTargetLanguage()->getName(), ])); Loading sources/tmgmt_config/tests/src/Functional/ConfigSourceListTest.php +1 −1 Changes for sources/tmgmt_config/tests/src/Functional/ConfigSourceListTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ class ConfigSourceListTest extends TMGMTTestBase { // Verify that we are on the Cart page. $cart_tab_active = $this->xpath('//ul[@class="tabs primary"]/li[@class="is-active"]/a')[0]; $this->assertEquals('Cart(active tab)', $cart_tab_active->getText()); $this->assertTitle('Cart | Drupal'); $this->assertSession()->titleEquals('Cart | Drupal'); $this->assertSession()->pageTextContains('Request translation'); } Loading tests/src/Functional/TMGMTUiTest.php +13 −13 Changes for tests/src/Functional/TMGMTUiTest.php: 13 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -710,31 +710,31 @@ class TMGMTUiTest extends TMGMTTestBase { // Tmgtm settings. $this->drupalGet('/admin/tmgmt/settings'); $this->assertTitle(t('Settings | Drupal')); $this->assertSession()->titleEquals('Settings | Drupal'); // Manage translators. $this->drupalGet('/admin/tmgmt/translators'); $this->assertTitle(t('Providers | Drupal')); $this->assertSession()->titleEquals('Providers | Drupal'); // Add Translator. $this->drupalGet('/admin/tmgmt/translators/add'); $this->assertTitle(t('Add Provider | Drupal')); $this->assertSession()->titleEquals('Add Provider | Drupal'); // Delete Translators. $this->drupalGet('/admin/tmgmt/translators/manage/' . $translator->id() . '/delete'); $this->assertTitle(t('Are you sure you want to delete the provider @label? | Drupal', ['@label' => $translator->label()])); $this->assertSession()->titleEquals((string) t('Are you sure you want to delete the provider @label? | Drupal', ['@label' => $translator->label()])); // Edit Translators. $this->drupalGet('/admin/tmgmt/translators/manage/' . $translator->id()); $this->assertTitle(t('Edit provider | Drupal')); $this->assertSession()->titleEquals('Edit provider | Drupal'); // Delete Job. $this->drupalGet('/admin/tmgmt/jobs/' . $job->id() . '/delete'); $this->assertTitle(t('Are you sure you want to delete the translation job @label? | Drupal', ['@label' => $job->label()])); $this->assertSession()->titleEquals((string) t('Are you sure you want to delete the translation job @label? | Drupal', ['@label' => $job->label()])); // Resubmit Job. $this->drupalGet('/admin/tmgmt/jobs/' . $job->id() . '/resubmit'); $this->assertTitle(t('Resubmit as a new job? | Drupal')); $this->assertSession()->titleEquals('Resubmit as a new job? | Drupal'); // Abort Job. $this->drupalGet('/admin/tmgmt/jobs/' . $job->id() . '/abort'); $this->assertTitle(t('Abort this job? | Drupal')); $this->assertSession()->titleEquals('Abort this job? | Drupal'); // Edit Job Item. $this->drupalGet('/admin/tmgmt/items/' . $job->id()); $this->assertTitle(t('Job item @label | Drupal', ['@label' => $item->label()])); $this->assertSession()->titleEquals((string) t('Job item @label | Drupal', ['@label' => $item->label()])); // Assert the breadcrumb. $this->assertSession()->linkExists(t('Home')); $this->assertSession()->linkExists(t('Administration')); Loading @@ -743,13 +743,13 @@ class TMGMTUiTest extends TMGMTTestBase { // Translation Sources. $this->drupalGet('admin'); $this->clickLink(t('Translation')); $this->assertTitle(t('Translation | Drupal')); $this->assertSession()->titleEquals('Translation | Drupal'); $this->clickLink(t('Cart')); $this->assertTitle(t('Cart | Drupal')); $this->assertSession()->titleEquals('Cart | Drupal'); $this->clickLink(t('Jobs')); $this->assertTitle(t('Job overview | Drupal')); $this->assertSession()->titleEquals('Job overview | Drupal'); $this->clickLink(t('Sources')); $this->assertTitle(t('Translation Sources | Drupal')); $this->assertSession()->titleEquals('Translation Sources | Drupal'); } /** Loading Loading
sources/content/tests/src/Functional/ContentTmgmtEntitySourceNoCanonicalLinkTest.php +1 −1 Changes for sources/content/tests/src/Functional/ContentTmgmtEntitySourceNoCanonicalLinkTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ class ContentTmgmtEntitySourceNoCanonicalLinkTest extends TMGMTTestBase { $this->assertSession()->pageTextNotContains('Translation publish status'); $this->assertNoField('edit-moderation-state-new-state'); $this->submitForm([], 'Save as completed'); $this->assertTitle($entity->label() . ' (English to German, Finished) | Drupal'); $this->assertSession()->titleEquals($entity->label() . ' (English to German, Finished) | Drupal'); $this->assertSession()->pageTextContains('The translation for name english has been accepted as de(de-ch): name english.'); } }
sources/content/tests/src/Functional/ContentTmgmtEntitySourceUiTest.php +2 −2 Changes for sources/content/tests/src/Functional/ContentTmgmtEntitySourceUiTest.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -864,7 +864,7 @@ class ContentTmgmtEntitySourceUiTest extends TMGMTTestBase { $job->settings->action = 'translate'; $job->save(); $job->requestTranslation(); $this->assertTitle(t("Preview of @title for @target_language | Drupal", [ $this->assertSession()->titleEquals((string) t("Preview of @title for @target_language | Drupal", [ '@title' => $node->getTitle(), '@target_language' => $job->getTargetLanguage()->getName(), ])); Loading @@ -878,7 +878,7 @@ class ContentTmgmtEntitySourceUiTest extends TMGMTTestBase { $key = \Drupal::service('tmgmt_content.key_access')->getKey($job_item); $this->drupalGet(URL::fromRoute('tmgmt_content.job_item_preview', ['tmgmt_job_item' => $job_item->id()], ['query' => ['key' => $key]])); $this->assertSession()->statusCodeEquals(200); $this->assertTitle(t("Preview of @title for @target_language | Drupal", [ $this->assertSession()->titleEquals((string) t("Preview of @title for @target_language | Drupal", [ '@title' => $node->getTitle(), '@target_language' => $job->getTargetLanguage()->getName(), ])); Loading
sources/tmgmt_config/tests/src/Functional/ConfigSourceListTest.php +1 −1 Changes for sources/tmgmt_config/tests/src/Functional/ConfigSourceListTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -159,7 +159,7 @@ class ConfigSourceListTest extends TMGMTTestBase { // Verify that we are on the Cart page. $cart_tab_active = $this->xpath('//ul[@class="tabs primary"]/li[@class="is-active"]/a')[0]; $this->assertEquals('Cart(active tab)', $cart_tab_active->getText()); $this->assertTitle('Cart | Drupal'); $this->assertSession()->titleEquals('Cart | Drupal'); $this->assertSession()->pageTextContains('Request translation'); } Loading
tests/src/Functional/TMGMTUiTest.php +13 −13 Changes for tests/src/Functional/TMGMTUiTest.php: 13 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -710,31 +710,31 @@ class TMGMTUiTest extends TMGMTTestBase { // Tmgtm settings. $this->drupalGet('/admin/tmgmt/settings'); $this->assertTitle(t('Settings | Drupal')); $this->assertSession()->titleEquals('Settings | Drupal'); // Manage translators. $this->drupalGet('/admin/tmgmt/translators'); $this->assertTitle(t('Providers | Drupal')); $this->assertSession()->titleEquals('Providers | Drupal'); // Add Translator. $this->drupalGet('/admin/tmgmt/translators/add'); $this->assertTitle(t('Add Provider | Drupal')); $this->assertSession()->titleEquals('Add Provider | Drupal'); // Delete Translators. $this->drupalGet('/admin/tmgmt/translators/manage/' . $translator->id() . '/delete'); $this->assertTitle(t('Are you sure you want to delete the provider @label? | Drupal', ['@label' => $translator->label()])); $this->assertSession()->titleEquals((string) t('Are you sure you want to delete the provider @label? | Drupal', ['@label' => $translator->label()])); // Edit Translators. $this->drupalGet('/admin/tmgmt/translators/manage/' . $translator->id()); $this->assertTitle(t('Edit provider | Drupal')); $this->assertSession()->titleEquals('Edit provider | Drupal'); // Delete Job. $this->drupalGet('/admin/tmgmt/jobs/' . $job->id() . '/delete'); $this->assertTitle(t('Are you sure you want to delete the translation job @label? | Drupal', ['@label' => $job->label()])); $this->assertSession()->titleEquals((string) t('Are you sure you want to delete the translation job @label? | Drupal', ['@label' => $job->label()])); // Resubmit Job. $this->drupalGet('/admin/tmgmt/jobs/' . $job->id() . '/resubmit'); $this->assertTitle(t('Resubmit as a new job? | Drupal')); $this->assertSession()->titleEquals('Resubmit as a new job? | Drupal'); // Abort Job. $this->drupalGet('/admin/tmgmt/jobs/' . $job->id() . '/abort'); $this->assertTitle(t('Abort this job? | Drupal')); $this->assertSession()->titleEquals('Abort this job? | Drupal'); // Edit Job Item. $this->drupalGet('/admin/tmgmt/items/' . $job->id()); $this->assertTitle(t('Job item @label | Drupal', ['@label' => $item->label()])); $this->assertSession()->titleEquals((string) t('Job item @label | Drupal', ['@label' => $item->label()])); // Assert the breadcrumb. $this->assertSession()->linkExists(t('Home')); $this->assertSession()->linkExists(t('Administration')); Loading @@ -743,13 +743,13 @@ class TMGMTUiTest extends TMGMTTestBase { // Translation Sources. $this->drupalGet('admin'); $this->clickLink(t('Translation')); $this->assertTitle(t('Translation | Drupal')); $this->assertSession()->titleEquals('Translation | Drupal'); $this->clickLink(t('Cart')); $this->assertTitle(t('Cart | Drupal')); $this->assertSession()->titleEquals('Cart | Drupal'); $this->clickLink(t('Jobs')); $this->assertTitle(t('Job overview | Drupal')); $this->assertSession()->titleEquals('Job overview | Drupal'); $this->clickLink(t('Sources')); $this->assertTitle(t('Translation Sources | Drupal')); $this->assertSession()->titleEquals('Translation Sources | Drupal'); } /** Loading