LingotekContentMetadataJobIdUpdate8206Test.php in Lingotek Translation 8.2
File
tests/src/Functional/Update/LingotekContentMetadataJobIdUpdate8206Test.php
View source
<?php
namespace Drupal\Tests\lingotek\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\lingotek\Entity\LingotekContentMetadata;
class LingotekContentMetadataJobIdUpdate8206Test extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-8.lingotek.standard.pre8205.php.gz',
];
}
public function testUpgrade() {
$this
->runUpdates();
$metadatas = LingotekContentMetadata::loadMultiple();
foreach ($metadatas as $id => $metadata) {
$this
->assertSame('', $metadata
->getJobId(), "Job id is empty.");
}
}
}