public function LingotekSystemSiteBulkDebugTest::testDebugExport in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 4.0.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.0.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.1.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.2.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.3.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.4.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.5.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.6.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
- 3.7.x tests/src/Functional/LingotekSystemSiteBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekSystemSiteBulkDebugTest::testDebugExport()
File
- tests/
src/ Functional/ LingotekSystemSiteBulkDebugTest.php, line 58
Class
- LingotekSystemSiteBulkDebugTest
- Tests debugging a config object using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testDebugExport() {
// Login as admin.
$this
->drupalLogin($this->rootUser);
// Enable the debug operations.
$this
->drupalGet('admin/lingotek/settings');
$this
->drupalPostForm(NULL, [], t('Enable debug operations'));
// Go to the bulk config management page.
$this
->goToConfigBulkManagementForm();
$edit = [
'table[system.site_information_settings]' => TRUE,
$this
->getBulkOperationFormName() => 'debug.export',
];
$this
->drupalPostForm(NULL, $edit, $this
->getApplyActionsButtonLabel());
$this
->assertText('Exports available');
// Download the file.
$this
->clickLink('config.system.site_information_settings.json');
$response = json_decode($this
->getSession()
->getPage()
->getContent(), TRUE);
$this
->assertIdentical('Drupal', $response['system.site']['name']);
$this
->assertIdentical('', $response['system.site']['slogan']);
$this
->assertIdentical('system.site_information_settings (config): System information', $response['_debug']['title']);
$this
->assertIdentical('manual', $response['_debug']['profile']);
$this
->assertIdentical('en_US', $response['_debug']['source_locale']);
}