Loading sources/content/tests/src/Functional/ContentEntitySourceContentModerationTest.php +2 −2 Changes for sources/content/tests/src/Functional/ContentEntitySourceContentModerationTest.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ class ContentEntitySourceContentModerationTest extends TMGMTTestBase { $this->submitForm([], 'Save as completed'); $this->assertSession()->pageTextContains('The translation for node title (draft) has been accepted as de(de-ch): node title (draft).'); $this->drupalGet($node->toUrl('edit-form')->toString()); $this->assertFieldByName('entity_test_composite[0][target_id]', 'composite name (' . $composite->id() . ')'); $this->assertSession()->fieldValueEquals('entity_test_composite[0][target_id]', 'composite name (' . $composite->id() . ')'); $composite = EntityTestComposite::load($composite->id()); $this->assertEquals('de(de-ch): composite name', $composite->getTranslation('de')->getName()); Loading Loading @@ -257,7 +257,7 @@ class ContentEntitySourceContentModerationTest extends TMGMTTestBase { $this->assertSession()->pageTextContains('Job item ' . $draft_title); // Assert there is no content moderation form element. $this->assertNoFieldByName('moderation_state|0|value[source]'); $this->assertSession()->fieldNotExists('moderation_state|0|value[source]'); // Assert custom content moderation form element. $this->assertSession()->pageTextContains('Current source state'); $this->assertSession()->pageTextContains('Draft'); Loading sources/content/tests/src/Functional/ContentEntitySourceTranslatableEntityTest.php +1 −1 Changes for sources/content/tests/src/Functional/ContentEntitySourceTranslatableEntityTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ class ContentEntitySourceTranslatableEntityTest extends TMGMTTestBase { // Assert there is the entity_test_composite as entity embedded now. $this->drupalGet('/admin/tmgmt/settings'); $this->assertFieldByName('embedded_fields[node][entity_test_t_composite]'); $this->assertSession()->fieldExists('embedded_fields[node][entity_test_t_composite]'); $this->assertSession()->pageTextContains('Note: This is a translatable field to an untranslatable target. A copy of the target will be created when translating.'); } } Loading tests/src/Functional/TMGMTUiContinuousTest.php +1 −1 Changes for tests/src/Functional/TMGMTUiContinuousTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ class TMGMTUiContinuousTest extends TMGMTTestBase { $this->submitForm([], t('Delete')); $this->drupalGet('admin/tmgmt/job_items'); $this->assertSession()->pageTextNotContains(t('Job type')); $this->assertNoFieldByName('job_type'); $this->assertSession()->fieldNotExists('job_type'); // Test that the empty text is displayed. $this->drupalGet('admin/tmgmt/job_items', array('query' => array('state' => 5))); Loading tests/src/Functional/TMGMTUiReviewTest.php +1 −1 Changes for tests/src/Functional/TMGMTUiReviewTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class TMGMTUiReviewTest extends TMGMTTestBase { // Translator should see enabled translation field again. $this->drupalGet('admin/tmgmt/items/' . $item1->id()); $this->assertSession()->responseContains('Save as completed" class="button button--primary js-form-submit form-submit"'); $this->assertFieldByName('body|deep_nesting[translation]'); $this->assertSession()->fieldExists('body|deep_nesting[translation]'); $translation_field = $this->xpath('//*[@id="edit-bodydeep-nesting-translation"]')[0]; $this->assertEquals('', $translation_field->getText()); } Loading tests/src/Functional/TranslatorUITest.php +3 −3 Changes for tests/src/Functional/TranslatorUITest.php: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -42,9 +42,9 @@ class TranslatorUITest extends TMGMTTestBase { $this->assertSession()->pageTextContains('Test translator configuration has been created.'); // Test translator edit page. $this->drupalGet('admin/tmgmt/translators/manage/translator_test'); $this->assertFieldByName('label', 'Test translator'); $this->assertFieldByName('description', 'Test translator description'); $this->assertFieldByName('name', 'translator_test'); $this->assertSession()->fieldValueEquals('label', 'Test translator'); $this->assertSession()->fieldValueEquals('description', 'Test translator description'); $this->assertSession()->fieldValueEquals('name', 'translator_test'); $this->assertFieldChecked('edit-settings-scheme-private'); $this->submitForm([ 'label' => 'Test translator changed', Loading Loading
sources/content/tests/src/Functional/ContentEntitySourceContentModerationTest.php +2 −2 Changes for sources/content/tests/src/Functional/ContentEntitySourceContentModerationTest.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ class ContentEntitySourceContentModerationTest extends TMGMTTestBase { $this->submitForm([], 'Save as completed'); $this->assertSession()->pageTextContains('The translation for node title (draft) has been accepted as de(de-ch): node title (draft).'); $this->drupalGet($node->toUrl('edit-form')->toString()); $this->assertFieldByName('entity_test_composite[0][target_id]', 'composite name (' . $composite->id() . ')'); $this->assertSession()->fieldValueEquals('entity_test_composite[0][target_id]', 'composite name (' . $composite->id() . ')'); $composite = EntityTestComposite::load($composite->id()); $this->assertEquals('de(de-ch): composite name', $composite->getTranslation('de')->getName()); Loading Loading @@ -257,7 +257,7 @@ class ContentEntitySourceContentModerationTest extends TMGMTTestBase { $this->assertSession()->pageTextContains('Job item ' . $draft_title); // Assert there is no content moderation form element. $this->assertNoFieldByName('moderation_state|0|value[source]'); $this->assertSession()->fieldNotExists('moderation_state|0|value[source]'); // Assert custom content moderation form element. $this->assertSession()->pageTextContains('Current source state'); $this->assertSession()->pageTextContains('Draft'); Loading
sources/content/tests/src/Functional/ContentEntitySourceTranslatableEntityTest.php +1 −1 Changes for sources/content/tests/src/Functional/ContentEntitySourceTranslatableEntityTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -132,7 +132,7 @@ class ContentEntitySourceTranslatableEntityTest extends TMGMTTestBase { // Assert there is the entity_test_composite as entity embedded now. $this->drupalGet('/admin/tmgmt/settings'); $this->assertFieldByName('embedded_fields[node][entity_test_t_composite]'); $this->assertSession()->fieldExists('embedded_fields[node][entity_test_t_composite]'); $this->assertSession()->pageTextContains('Note: This is a translatable field to an untranslatable target. A copy of the target will be created when translating.'); } } Loading
tests/src/Functional/TMGMTUiContinuousTest.php +1 −1 Changes for tests/src/Functional/TMGMTUiContinuousTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -147,7 +147,7 @@ class TMGMTUiContinuousTest extends TMGMTTestBase { $this->submitForm([], t('Delete')); $this->drupalGet('admin/tmgmt/job_items'); $this->assertSession()->pageTextNotContains(t('Job type')); $this->assertNoFieldByName('job_type'); $this->assertSession()->fieldNotExists('job_type'); // Test that the empty text is displayed. $this->drupalGet('admin/tmgmt/job_items', array('query' => array('state' => 5))); Loading
tests/src/Functional/TMGMTUiReviewTest.php +1 −1 Changes for tests/src/Functional/TMGMTUiReviewTest.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ class TMGMTUiReviewTest extends TMGMTTestBase { // Translator should see enabled translation field again. $this->drupalGet('admin/tmgmt/items/' . $item1->id()); $this->assertSession()->responseContains('Save as completed" class="button button--primary js-form-submit form-submit"'); $this->assertFieldByName('body|deep_nesting[translation]'); $this->assertSession()->fieldExists('body|deep_nesting[translation]'); $translation_field = $this->xpath('//*[@id="edit-bodydeep-nesting-translation"]')[0]; $this->assertEquals('', $translation_field->getText()); } Loading
tests/src/Functional/TranslatorUITest.php +3 −3 Changes for tests/src/Functional/TranslatorUITest.php: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -42,9 +42,9 @@ class TranslatorUITest extends TMGMTTestBase { $this->assertSession()->pageTextContains('Test translator configuration has been created.'); // Test translator edit page. $this->drupalGet('admin/tmgmt/translators/manage/translator_test'); $this->assertFieldByName('label', 'Test translator'); $this->assertFieldByName('description', 'Test translator description'); $this->assertFieldByName('name', 'translator_test'); $this->assertSession()->fieldValueEquals('label', 'Test translator'); $this->assertSession()->fieldValueEquals('description', 'Test translator description'); $this->assertSession()->fieldValueEquals('name', 'translator_test'); $this->assertFieldChecked('edit-settings-scheme-private'); $this->submitForm([ 'label' => 'Test translator changed', Loading