Commit b728936c authored by alexpott's avatar alexpott

Issue #2551341 by stefan.r: Update test database dump should be based on beta...

Issue #2551341 by stefan.r: Update test database dump should be based on beta 12 and contain content
parent 1b4e1eef
<?php
/**
* @file
* Contains \Drupal\block\Tests\Update\BlockContextMappingUpdateFilledTest.
*/
namespace Drupal\block\Tests\Update;
/**
* Runs BlockContextMappingUpdateTest with a dump filled with content.
*
* @group Update
*/
class BlockContextMappingUpdateFilledTest extends BlockContextMappingUpdateTest {
/**
* {@inheritdoc}
*/
protected function setUp() {
$this->databaseDumpFiles[0] = __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
<?php
/**
* @file
* Contains \Drupal\system\Tests\Entity\Update\SqlContentEntityStorageSchemaIndexFilledTest.
*/
namespace Drupal\system\Tests\Entity\Update;
/**
* Runs SqlContentEntityStorageSchemaIndexTest with a dump filled with content.
*
* @group Entity
*/
class SqlContentEntityStorageSchemaIndexFilledTest extends SqlContentEntityStorageSchemaIndexTest {
/**
* {@inheritdoc}
*/
public function setUp() {
$this->databaseDumpFiles[0] = __DIR__ . '/../../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
<?php
/**
* @file
* Contains \Drupal\system\Tests\Update\MenuTreeSerializationTitleFilledTest.
*/
namespace Drupal\system\Tests\Update;
/**
* Runs MenuTreeSerializationTitleTest with a dump filled with content.
*
* @group Update
*/
class MenuTreeSerializationTitleFilledTest extends MenuTreeSerializationTitleTest {
/**
* {@inheritdoc}
*/
public function setUp() {
$this->databaseDumpFiles[0] = __DIR__ . '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
<?php
/**
* @file
* Contains \Drupal\system\Tests\Update\RouterIndexOptimizationFilledTest.
*/
namespace Drupal\system\Tests\Update;
/**
* Runs RouterIndexOptimizationTest with a dump filled with content.
*
* @group Update
*/
class RouterIndexOptimizationFilledTest extends RouterIndexOptimizationTest {
/**
* {@inheritdoc}
*/
public function setUp() {
$this->databaseDumpFiles[0] = __DIR__ . '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
......@@ -29,6 +29,10 @@
* method in this class.
* - In your test method, call $this->runUpdates() to run the necessary updates,
* and then use test assertions to verify that the result is what you expect.
* - In order to test both with a "bare" database dump as well as with a
* database dump filled with content, extend your update path test class with
* a new test class that overrides the bare database dump. Refer to
* UpdatePathTestBaseFilledTest for an example.
*
* @ingroup update_api
*
......@@ -50,6 +54,10 @@ abstract class UpdatePathTestBase extends WebTestBase {
* normally included first -- this sets up the base database from a bare
* standard Drupal installation.
*
* The file system/tests/fixtures/update/drupal-8.filled.standard.php.gz
* can also be used in case we want to test with a database filled with
* content, and with all core modules enabled.
*
* @var array
*/
protected $databaseDumpFiles = [];
......
<?php
/**
* @file
* Contains \Drupal\system\Tests\Update\UpdatePathTestBaseFilledTest.php
*/
namespace Drupal\system\Tests\Update;
/**
* Runs UpdatePathTestBaseTest with a dump filled with content.
*
* @group Update
*/
class UpdatePathTestBaseFilledTest extends UpdatePathTestBaseTest {
/**
* {@inheritdoc}
*/
protected function setUp() {
$this->databaseDumpFiles[0] = __DIR__ . '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
<?php
/**
* @file
* Contains \Drupal\system\Tests\Update\UpdatePathWithBrokenRoutingFilledTest.
*/
namespace Drupal\system\Tests\Update;
/**
* Runs UpdatePathWithBrokenRoutingTest with a dump filled with content.
*
* @group Update
*/
class UpdatePathWithBrokenRoutingFilledTest extends UpdatePathWithBrokenRoutingTest {
/**
* {@inheritdoc}
*/
protected function setUp() {
$this->databaseDumpFiles[0] = '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
<?php
/**
* @file
* Contains \Drupal\views\Tests\Update\EntityViewsDataUpdateFilledTest.
*/
namespace Drupal\views\Tests\Update;
/**
* Runs EntityViewsDataUpdateTest with a dump filled with content.
*
* @group Update
*/
class EntityViewsDataUpdateFilledTest extends EntityViewsDataUpdateTest {
/**
* {@inheritdoc}
*/
protected function setUp() {
$this->databaseDumpFiles[0] = __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz';
parent::setUp();
}
}
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