Tripal
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Drupal\Tests\tripal_chado\Functional\api\ChadoComplianceTest Class Reference
Inheritance diagram for Drupal\Tests\tripal_chado\Functional\api\ChadoComplianceTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_chado\Functional\api\ChadoComplianceTest:
Collaboration graph
[legend]

Public Member Functions

 testTableCompliance ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $defaultTheme = 'stark'
 
 $connection
 
- Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase
 $defaultTheme = 'stark'
 

Static Protected Attributes

static $modules = ['tripal', 'tripal_chado']
 
- Static Protected Attributes inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase
static $modules = ['tripal', 'tripal_biodb', 'tripal_chado']
 
- Static Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase
static $modules = ['tripal']
 

Additional Inherited Members

- Public Attributes inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase
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
 

Detailed Description

Tests the current Chado Database is compliant with the schema definition used by Tripal.

@group Tripal @group Tripal Chado @group Tripal Database

Member Function Documentation

◆ setUp()

Drupal\Tests\tripal_chado\Functional\api\ChadoComplianceTest::setUp ( )
protected

◆ testTableCompliance()

Drupal\Tests\tripal_chado\Functional\api\ChadoComplianceTest::testTableCompliance ( )

Tests Compliance for a given table.

The following is tested:

  1. The table exists in the correct schema.
  2. It has all the fields we expect.
  3. Each field is the type we expect.
  4. It has all the constraints we expect.
  5. Each constraint consists of the columns we expect.

@group api @group chado @group chado-compliance


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