protected function LingotekSystemSiteBulkDisassociateTest::createAndTranslateSystemSiteWithLinks in Lingotek Translation 8
2 calls to LingotekSystemSiteBulkDisassociateTest::createAndTranslateSystemSiteWithLinks()
- LingotekSystemSiteBulkDisassociateTest::testSystemSiteDisassociate in src/
Tests/ LingotekSystemSiteBulkDisassociateTest.php - Tests that a config entity can be disassociated using the bulk operations on the management page.
- LingotekSystemSiteBulkDisassociateTest::testSystemSiteDisassociateWithRemovalOfRemoteDocument in src/
Tests/ LingotekSystemSiteBulkDisassociateTest.php - Tests that a config entity can be disassociated using the bulk operations on the management page.
File
- src/
Tests/ LingotekSystemSiteBulkDisassociateTest.php, line 111
Class
- LingotekSystemSiteBulkDisassociateTest
- Tests translating config using the bulk management form.
Namespace
Drupal\lingotek\TestsCode
protected function createAndTranslateSystemSiteWithLinks() {
// Go to the bulk config management page.
$this
->goToConfigBulkManagementForm();
// Clicking English must init the upload of content.
$this
->clickLink('EN', 1);
$this
->assertText(t('System information uploaded successfully'));
// There is a link for checking status.
$this
->clickLink('EN', 1);
$this
->assertText('System information status checked successfully');
// Request the Spanish translation.
$this
->clickLink('ES');
$this
->assertText("Translation to es_ES requested successfully");
// Check status of the Spanish translation.
$this
->clickLink('ES');
$this
->assertText("Translation to es_ES checked successfully");
// Download the Spanish translation.
$this
->clickLink('ES');
$this
->assertText('Translation to es_ES downloaded successfully');
}