Tripal
Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase Class Reference
Inheritance diagram for Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase:
Collaboration graph
[legend]

Public Attributes

const SCHEMA_NAME_ONLY = 0
 
const CREATE_SCHEMA = 1
 
const INIT_DUMMY = 2
 
const INIT_CHADO_EMPTY = 3
 
const INIT_CHADO_DUMMY = 4
 
const PREPARE_TEST_CHADO = 5
 

Protected Member Functions

 setUp ()
 

Static Protected Attributes

static $modules = ['tripal', 'tripal_biodb', 'tripal_chado']
 

Detailed Description

This is a base class for Chado tests.

It enables Chado tests schemas and helper functions to efficiently perform tests.

Example:

// Gets a Chado test schema with dummy data:
$biodb = $this->getTestSchema(ChadoTestKernelBase::INIT_CHADO_DUMMY);
//... do some tests
// After all is done, remove the schema properly:
$this->freeTestSchema($biodb);
// Note: if a test fails, the tearDownAfterClass will remove unremoved
// schemas.
const INIT_CHADO_DUMMY
Definition: ChadoTestKernelBase.php:63

@group Tripal @group Tripal Chado

Member Function Documentation

◆ setUp()

Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::setUp ( )
protected

Member Data Documentation

◆ CREATE_SCHEMA

const Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::CREATE_SCHEMA = 1

Create an empty schema.

◆ INIT_CHADO_DUMMY

const Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::INIT_CHADO_DUMMY = 4

Create a Chado schema and initialize it with dummy data.

◆ INIT_CHADO_EMPTY

const Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::INIT_CHADO_EMPTY = 3

Create a Chado schema with default data.

◆ INIT_DUMMY

const Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::INIT_DUMMY = 2

Create a schema and initialize it with dummy data.

◆ PREPARE_TEST_CHADO

const Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::PREPARE_TEST_CHADO = 5

Create a Chado schema and prepare both it and the associated drupal schema.

◆ SCHEMA_NAME_ONLY

const Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase::SCHEMA_NAME_ONLY = 0

{} Just get a free test schema name.


The documentation for this class was generated from the following file: