DriverSpecificDatabaseTestBase.php

Same filename in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php
  2. 11.x core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php

Namespace

Drupal\KernelTests\Core\Database

File

core/tests/Drupal/KernelTests/Core/Database/DriverSpecificDatabaseTestBase.php

View source
<?php

namespace Drupal\KernelTests\Core\Database;


/**
 * Base class for driver specific database tests.
 */
abstract class DriverSpecificDatabaseTestBase extends DriverSpecificKernelTestBase {
    use DatabaseTestSchemaDataTrait;
    use DatabaseTestSchemaInstallTrait;
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'database_test',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installSampleSchema();
        $this->addSampleData();
    }

}

Classes

Title Deprecated Summary
DriverSpecificDatabaseTestBase Base class for driver specific database tests.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.