class DriverSpecificSchemaTestBase
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php \Drupal\KernelTests\Core\Database\DriverSpecificSchemaTestBase
Tests table creation and modification via the schema API.
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Database\DriverSpecificKernelTestBase implements \Drupal\KernelTests\KernelTestBase
- class \Drupal\KernelTests\Core\Database\DriverSpecificSchemaTestBase uses \Drupal\Tests\Core\Database\SchemaIntrospectionTestTrait implements \Drupal\KernelTests\Core\Database\DriverSpecificKernelTestBase
- class \Drupal\KernelTests\Core\Database\DriverSpecificKernelTestBase implements \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of DriverSpecificSchemaTestBase
2 files declare their use of DriverSpecificSchemaTestBase
- SchemaTest.php in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ SchemaTest.php - SchemaTest.php in core/
modules/ pgsql/ tests/ src/ Kernel/ pgsql/ SchemaTest.php
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificSchemaTestBase.php, line 10
Namespace
Drupal\KernelTests\Core\DatabaseView source
abstract class DriverSpecificSchemaTestBase extends DriverSpecificKernelTestBase {
use SchemaIntrospectionTestTrait;
/**
* Database schema instance.
*/
protected $schema;
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->schema = $this->connection
->schema();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.