Mercurial > hg > isophonics-drupal-site
diff core/modules/system/src/Tests/Database/DatabaseWebTestBase.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/system/src/Tests/Database/DatabaseWebTestBase.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,31 @@ +<?php + +namespace Drupal\system\Tests\Database; + +@trigger_error(__NAMESPACE__ . '\DatabaseWebTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\system\Functional\Database\DatabaseTestBase', E_USER_DEPRECATED); + +use Drupal\KernelTests\Core\Database\DatabaseTestBase; +use Drupal\simpletest\WebTestBase; + +/** + * Base class for databases database tests. + * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead + * use \Drupal\Tests\system\Functional\Database\DatabaseTestBase. + */ +abstract class DatabaseWebTestBase extends WebTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['database_test']; + + protected function setUp() { + parent::setUp(); + + DatabaseTestBase::addSampleData(); + } + +}