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

Public Member Functions

 testChadoTableColumnExists ()
 
 testChadoSchemaMetdata ()
 
 testInitClass ()
 
 testGetVersion ()
 
 testGetSchemaName ()
 
 testGetSchemaDetails ()
 
 testGetTableNames ($version, $known_tables)
 
 testGetTableSchema ()
 
 testGetCustomTableSchema ($table_name)
 
 testGetBaseTables ($version, $known_tables)
 
 knownTableProvider ()
 
 knownBaseTableProvider ()
 
 knownCustomTableProvider ()
 

Protected Attributes

 $defaultTheme = 'stark'
 

Static Protected Attributes

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

Detailed Description

Testing the tripal_chado/api/tripal_chado.schema.api.php functions.

@group Tripal @group Tripal Chado @group Tripal Database @group Tripal API

Member Function Documentation

◆ knownBaseTableProvider()

Drupal\Tests\tripal_chado\SchemaAPITest::knownBaseTableProvider ( )

Data Provider: returns known tables specific to a given chado version.

Returns
array

◆ knownCustomTableProvider()

Drupal\Tests\tripal_chado\SchemaAPITest::knownCustomTableProvider ( )

Data Provider: returns known custom tables specific to a given chado version.

NOTE: These tables are provided by core Tripal so we should be able to depend on them. Also, for the same reason, chado version doesn't matter.

Returns
array

◆ knownTableProvider()

Drupal\Tests\tripal_chado\SchemaAPITest::knownTableProvider ( )

Data Provider: returns known tables specific to a given chado version.

Returns
array

◆ testChadoSchemaMetdata()

Drupal\Tests\tripal_chado\SchemaAPITest::testChadoSchemaMetdata ( )

Tests chado_get_schema_name().

@group tripal-chado @group chado-schema

◆ testChadoTableColumnExists()

Drupal\Tests\tripal_chado\SchemaAPITest::testChadoTableColumnExists ( )

Tests chado_table_exists() and chado_column_exists().

@group tripal-chado @group chado-schema

◆ testGetBaseTables()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetBaseTables (   $version,
  $known_tables 
)

Tests ChadoSchema->getBaseTables() method.

@dataProvider knownBaseTableProvider

@group api @group chado @group chado-schema

◆ testGetCustomTableSchema()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetCustomTableSchema (   $table_name)

Tests ChadoSchema->getCustomTableSchema() method.

@dataProvider knownCustomTableProvider

@group api @group chado @group chado-schema

NOTE: Currently being skipped because the custom tables functionality is not available yet.

◆ testGetSchemaDetails()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetSchemaDetails ( )

Tests the ChadoSchema->getSchemaDetails() method.

@group api @group chado @group chado-schema

◆ testGetSchemaName()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetSchemaName ( )

Tests the ChadoSchema->getSchemaName() method.

@group api @group chado @group chado-schema

◆ testGetTableNames()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetTableNames (   $version,
  $known_tables 
)

Tests ChadoSchema->getTableNames() method.

@dataProvider knownTableProvider

@group api @group chado @group chado-schema

◆ testGetTableSchema()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetTableSchema ( )

Tests ChadoSchema->getTableSchema() method.

@group api @group chado @group chado-schema

◆ testGetVersion()

Drupal\Tests\tripal_chado\SchemaAPITest::testGetVersion ( )

Tests the ChadoSchema->getVersion() method.

@group api @group chado @group chado-schema

◆ testInitClass()

Drupal\Tests\tripal_chado\SchemaAPITest::testInitClass ( )

Tests that the class can be initiated with or without a record specified

@group api @group chado @group chado-schema


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