LingotekModuleInstallationTest.php in Lingotek Translation 8
File
src/Tests/LingotekModuleInstallationTest.php
View source
<?php
namespace Drupal\lingotek\Tests;
use Drupal\simpletest\WebTestBase;
class LingotekModuleInstallationTest extends WebTestBase {
public function testEnableModule() {
$this
->drupalLogin($this->rootUser);
$this
->drupalGet('/admin/modules');
$this
->assertNoFieldChecked('edit-modules-multilingual-lingotek-enable');
$edit = [
'modules[Multilingual][lingotek][enable]' => '1',
];
$this
->drupalPostForm(NULL, $edit, 'Install');
$this
->assertText('Some required modules must be enabled');
$this
->drupalPostForm(NULL, [], 'Continue');
$this
->assertText('modules have been enabled: Lingotek Translation');
}
}