Commit 5f88f0e9 authored by mondrake's avatar mondrake Committed by mondrake

Issue #3063972 by mondrake: Convert Update8201Test to PHPUnit

parent 3893f538
......@@ -34,11 +34,6 @@ build:
testgroups: '--all'
suppress-deprecations: true
halt-on-fail: false
run_tests.simpletest:
types: 'Simpletest'
testgroups: '--all'
suppress-deprecations: true
halt-on-fail: false
run_tests.functional:
types: 'PHPUnit-Functional'
testgroups: '--all'
......
<?php
namespace Drupal\image_effects\Tests\Update;
namespace Drupal\Tests\image_effects\Functional\Update;
use Drupal\system\Tests\Update\UpdatePathTestBase;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests the upgrade path for enabling file_mdm and its submodules.
......@@ -16,7 +16,7 @@ class Update8201Test extends UpdatePathTestBase {
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../tests/fixtures/update/d834_ie810.php.gz',
__DIR__ . '/../../../fixtures/update/d834_ie810.php.gz',
];
}
......@@ -29,12 +29,6 @@ class Update8201Test extends UpdatePathTestBase {
$this->assertFalse(\Drupal::moduleHandler()->moduleExists('file_mdm_font'));
$this->runUpdates();
// @todo Fix https://www.drupal.org/node/2021959 so that module
// enable/disable changes are immediately reflected in
// \Drupal::getContainer(). Until then, tests can invoke this workaround
// when requiring services from newly enabled modules to be immediately
// available in the same request.
$this->rebuildContainer();
$this->assertTrue(\Drupal::moduleHandler()->moduleExists('file_mdm'));
$this->assertTrue(\Drupal::moduleHandler()->moduleExists('file_mdm_exif'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment