|
Tripal
|


Public Member Functions | |
| testGetMainTables (string $version, int $init_level) | |
| testGetDefault (string $version, int $init_level) | |
| testGetChadoSchemaDef (string $version, int $init_level, array $options) | |
| assertValidSchemaDef (array $schema_def, string $message) | |
Static Public Member Functions | |
| static | provideChadoSchemaVersions () |
| static | provideSchemaDefParams () |
Protected Member Functions | |
| setUp () | |
Protected Member Functions inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase | |
| prepareEnvironment (array $functionality) | |
Static Protected Attributes | |
| static | $modules = ['tripal', 'tripal_chado'] |
| static array | $supported_chado_versions |
| static array | $init_levels |
Static Protected Attributes inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase | |
| static | $modules = ['tripal', 'tripal_biodb', 'tripal_chado'] |
Static Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase | |
| static | $modules = ['tripal'] |
Additional Inherited Members | |
Public Attributes inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase | |
| 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 Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase | |
| $messenger = NULL | |
| $logger = NULL | |
| $fileretriever = NULL | |
| $publish_manager = NULL | |
Tests for ChadoConnection.
@group Tripal Chado @group TripalDBX @group ChadoDBX @group ChadoSchema
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoSchemaTest::assertValidSchemaDef | ( | array | $schema_def, |
| string | $message | ||
| ) |
Confirms that a Schema Definition array is valid.
| array | $schema_def | An array defining the schema as returned by getSchemaDef(). |
| string | $message | A message prefix to use with the asserts. |
|
static |
Provides each supported version of chado to the tests.
|
static |
Provides scenarios to test ChadoSchema::getSchemaDef().
|
protected |
{{{}}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoSchemaTest::testGetChadoSchemaDef | ( | string | $version, |
| int | $init_level, | ||
| array | $options | ||
| ) |
Tests ChadoSchema::getSchemaDef() on all Chado schema versions.
@dataProvider provideSchemaDefParams
| string | $version | The version of chado to test against. |
| int | $init_level | The init level to create the test database with. |
| array | $options | Parameters to use when testing ChadoSchema::getSchemaDef(). |
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoSchemaTest::testGetDefault | ( | string | $version, |
| int | $init_level | ||
| ) |
Test the ChadoSchema::getDefault() method on all Chado schema versions.
We will test that the default chado in this test returns the name set by the chadoTestTrait when a new test schema was created. The chadoTestTrait also sets the new chado schema created for testing to the default within the test environment.
There is no way to programatically set the default chado, so we will not test changing the default and seeing if the default is still reported correctly afterwards.
@dataProvider provideChadoSchemaVersions
| string | $version | The version of chado to test against. |
| int | $init_level | The init level to create the test database with. |
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoSchemaTest::testGetMainTables | ( | string | $version, |
| int | $init_level | ||
| ) |
Tests ChadoSchema::getMainTables() on all Chado schema versions.
@dataProvider provideChadoSchemaVersions
| string | $version | The version of chado to test against. |
| int | $init_level | The init level to create the test database with. |
|
staticprotected |
|
staticprotected |
{}
|
staticprotected |