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

Public Member Functions

 chadoTableProvider ()
 
 testTableCompliance ($schema_version, $table_name)
 

Detailed Description

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

Member Function Documentation

◆ chadoTableProvider()

Tests\tripal_chado\api\ChadoComplianceTest::chadoTableProvider ( )

DataProvider, a list of all chado tables.

Returns
array

◆ testTableCompliance()

Tests\tripal_chado\api\ChadoComplianceTest::testTableCompliance (   $schema_version,
  $table_name 
)

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.

@dataProvider chadoTableProvider

@group api @group chado @group chado-compliance


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