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

Public Member Functions

 testTableCompliance ()
 

Protected Attributes

 $defaultTheme = 'stark'
 

Static Protected Attributes

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

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

◆ testTableCompliance()

Drupal\Tests\tripal_chado\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: