LingotekPostUpdateRemoveAccountSandboxHostTest.php in Lingotek Translation 3.7.x
File
tests/src/Functional/Update/LingotekPostUpdateRemoveAccountSandboxHostTest.php
View source
<?php
namespace Drupal\Tests\lingotek\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class LingotekPostUpdateRemoveAccountSandboxHostTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-88x.lingotek-2x20.standard.php.gz',
];
}
public function testUpgrade() {
$lingotek_settings = $this
->config('lingotek.settings');
$this
->assertFalse($lingotek_settings
->get('account.use_production'));
$this
->assertSame('https://myaccount.lingotek.com', $lingotek_settings
->get('account.sandbox_host'));
$this
->runUpdates();
$lingotek_settings = \Drupal::configFactory()
->get('lingotek.settings');
$this
->assertNull($lingotek_settings
->get('account.use_production'));
$this
->assertNull($lingotek_settings
->get('account.sandbox_host'));
}
}