public function LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 4.0.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.0.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.1.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.2.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.3.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.5.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.6.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.7.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
- 3.8.x tests/src/Functional/LingotekContentTypeBulkDebugTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeBulkDebugTest::testDebugOptionsDisplay()
Tests that a config can be exported using the debug options on the management page.
File
- tests/
src/ Functional/ LingotekContentTypeBulkDebugTest.php, line 42
Class
- LingotekContentTypeBulkDebugTest
- Tests debugging a config entity using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testDebugOptionsDisplay() {
// Login as admin.
$this
->drupalLogin($this->rootUser);
// Go to the bulk config management page.
$this
->goToConfigBulkManagementForm();
// There is no 'debug' option group.
$this
->assertEmpty($this
->xpath('//select[@id=:id]//optgroup[@label=:label]', [
':id' => 'edit-operation',
':label' => 'debug',
]), 'There is no debug group.');
// 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();
// There should be a 'debug' option group with the right operation.
$this
->assertNotEmpty($this
->xpath('//select[@id=:id]//optgroup[@label=:label]', [
':id' => 'edit-operation',
':label' => 'debug',
]), 'There is a debug group.');
$this
->assertNotEmpty($this
->xpath('//select[@id=:id]//option[@value=:value]', [
':id' => 'edit-operation',
':value' => 'debug.export',
]), 'There is a debug export option.');
}