LingotekSettingsTabIntegrationFormTest.php in Lingotek Translation 3.4.x
Same filename and directory in other branches
- 8.2 tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 4.0.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.0.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.1.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.2.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.3.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.5.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.6.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.7.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
- 3.8.x tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.php
Namespace
Drupal\Tests\lingotek\Functional\FormFile
tests/src/Functional/Form/LingotekSettingsTabIntegrationFormTest.phpView source
<?php
namespace Drupal\Tests\lingotek\Functional\Form;
use Drupal\Tests\lingotek\Functional\LingotekTestBase;
/**
* Tests the Lingotek integrations settings form.
*
* @group lingotek
*/
class LingotekSettingsTabIntegrationFormTest extends LingotekTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
// Login as admin.
$this
->drupalLogin($this->rootUser);
}
/**
* Test that if there are no integration settings, there is no tab at all.
*/
public function testTabNotShownIfThereAreNoSettings() {
$this
->drupalGet('admin/lingotek/settings');
$this
->assertNoText('Integrations Settings');
}
}
Classes
Name | Description |
---|---|
LingotekSettingsTabIntegrationFormTest | Tests the Lingotek integrations settings form. |