|
Tripal
|


Public Member Functions | |
| testGetAvailableInstances (string $version, int $init_level) | |
| testDefaultTablePrefixing (string $version, int $init_level) | |
| testChadoQueryBuilding (string $version) | |
| testFindVersion (string $version, int $init_level) | |
| testFindVersionUnsupported () | |
| testGetTripalDbxClass () | |
| testChadoConnectionConstructor () | |
| testRemoveAllTestSchemas () | |
Static Public Member Functions | |
| static | provideChadoSchemaVersions () |
| static | provideChadoSchemaVersionsAcrossInitLevels () |
Protected Member Functions | |
| setUp () | |
Protected Member Functions inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase | |
| prepareEnvironment (array $functionality) | |
Static Protected Attributes | |
| static | $modules = ['system', 'user', 'views', 'path', '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 ChadoConnection @covers \Drupal\tripal\TripalDBX\TripalDbxConnection @covers \Drupal\tripal\TripalDBX\TripalDbxSchema @covers \Drupal\tripal_chado\Database\ChadoConnection::getAvailableInstances @covers \Drupal\tripal_chado\Database\ChadoConnection::findVersion @covers \Drupal\tripal_chado\Database\ChadoConnection::removeAllTestSchemas
|
static |
Provides each supported version of chado to the tests.
|
static |
Provides each supported version of chado to the tests.
|
protected |
{{{}}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionTest::testChadoConnectionConstructor | ( | ) |
Tests ChadoConnection::_construct() directly.
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionTest::testChadoQueryBuilding | ( | string | $version | ) |
Tests the Drupal query builders while querying chado.
@dataProvider provideChadoSchemaVersions
| string | $version | The version of chado to test against. |
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionTest::testDefaultTablePrefixing | ( | string | $version, |
| int | $init_level | ||
| ) |
Tests table prefixing by the ChadoConnection + TripalDbxConnection classes.
@dataProvider provideChadoSchemaVersionsAcrossInitLevels
NOTE: In Drupal you can execute queries directly using CONNECTION->query() or you can use the various query builders: CONNECTION->select(), CONNECTION->update(), CONNECTION->merge(), CONNECTION->upsert(), CONNECTION->delete().
This test is focusing on CONNECTION->query() since a code analysis shows that the other options are simply preparing a query and then executing it using CONNECTION->query().
That said, at some point we may want to add additional tests to show that the query builders are building queries appropriately but because these are Drupal functionalities and our differences come during execution and not at the query building stage, we are currently going to assume that the Drupal testing is sufficient for the query builders.
| 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\ChadoConnectionTest::testFindVersion | ( | string | $version, |
| int | $init_level | ||
| ) |
Tests the ChadoConnection::findVersion() across unique version/init levels.
@dataProvider provideChadoSchemaVersionsAcrossInitLevels
| 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\ChadoConnectionTest::testFindVersionUnsupported | ( | ) |
Tests the ChadoConnection::findVersion() when version unsupported.
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionTest::testGetAvailableInstances | ( | string | $version, |
| int | $init_level | ||
| ) |
Tests ChadoConnection::getAvailableInstances() across chado versions.
@dataProvider provideChadoSchemaVersionsAcrossInitLevels
| 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\ChadoConnectionTest::testGetTripalDbxClass | ( | ) |
Tests ChadoConnection::getTripalDbxClass() directly.
| Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionTest::testRemoveAllTestSchemas | ( | ) |
Tests ChadoConnection::removeAllTestSchemas().
|
staticprotected |
|
staticprotected |
{}
|
staticprotected |