FieldEncryptUpdatePathTest.php in Field Encryption 3.0.x
File
tests/src/Functional/FieldEncryptUpdatePathTest.php
View source
<?php
namespace Drupal\Tests\field_encrypt\Functional;
use Drupal\Core\Url;
use Drupal\Tests\RequirementsPageTrait;
class FieldEncryptUpdatePathTest extends FieldEncryptTestBase {
use RequirementsPageTrait;
public function testUpdate() {
$this
->drupalLogin($this->rootUser);
$update_url = Url::fromRoute('system.db_update');
$this
->drupalGet($update_url);
$this
->updateRequirementsProblem();
$this
->clickLink('Continue');
$this
->assertSession()
->pageTextContains('No pending updates.');
drupal_set_installed_schema_version('field_encrypt', 8000);
$this
->drupalGet($update_url);
$this
->assertSession()
->pageTextContains('Update to field_encrypt version 3 is not supported.');
$this
->drupalGet('admin/reports/status');
$this
->assertSession()
->pageTextContains('Update to field_encrypt version 3 is not supported.');
}
}