|
Tripal
|


Protected Member Functions | |
| setUp () | |
| getConnectionMock ( $schema_name='', $database='default', $logger=NULL) | |
| allowTestSchemas () | |
| get_drupal_prefix () | |
Protected Member Functions inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase | |
| prepareEnvironment (array $functionality) | |
Protected Attributes | |
| $proConfigFactory | |
| $configFactory | |
| $proConfig | |
| $config | |
Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase | |
| $messenger = NULL | |
| $logger = NULL | |
| $fileretriever = NULL | |
| $publish_manager = NULL | |
Static Protected Attributes | |
| static | $modules = ['tripal'] |
Static Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase | |
| static | $modules = ['tripal'] |
Tests for Tripal DBX connection on a real database.
@coversDefaultClass \Drupal\tripal\TripalDBX\TripalDbxConnection
@group Tripal @group TripalDBX @group TripalDbxConnection
@covers ::__construct @covers ::getDatabaseName @covers ::getDatabaseKey @covers ::getMessageLogger @covers ::schema @covers ::setSchemaName @covers ::getVersion @covers ::findVersion @covers ::getQuotedSchemaName @covers ::addExtraSchema @covers ::getExtraSchemas @covers ::prefixTables @covers ::setExtraSchema @covers ::prefixTables @covers ::clearExtraSchemas @covers ::tablePrefix @covers ::__toString @covers ::executeSqlQueries @covers ::query
|
protected |
Allow a test to use reserved default test schema names.
|
protected |
HELPER: Retrieve the Drupal table prefix for the current site.
|
protected |
Builds an initialized TripalDbxConnection mock.
|
protected |
{{}}
Reimplemented from Drupal\Tests\tripal\Kernel\TripalTestKernelBase.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testAddExtraSchemaNoSchema | ( | ) |
Tests ::addExtraSchema with no Tripal DBX schema.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorAllDefault | ( | ) |
Tests constructor: check constructor calls.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorInvalidSchemaDefaultKey | ( | ) |
Tests constructor: invalid schema, default key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorNoSchemaDefaultDb | ( | ) |
Tests constructor: no schema, default database.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorPublicSchemaDefaultKey | ( | ) |
Tests constructor: public schema, default key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorReservedSchemaDefaultKey | ( | ) |
Tests constructor: reserved schema, default key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorSearchPath | ( | ) |
Tests constructor: test search_path isolation.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorSpecialSchemaDefaultKey | ( | ) |
Tests constructor: special character schema, default key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorTestSchemaDefaultDb | ( | ) |
Tests constructor: test schema, default database.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorTestSchemaDefaultKey | ( | ) |
Tests constructor: test schema, default key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorTestSchemaInvalidDatabase | ( | ) |
Tests constructor: test schema, invalid database.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorTestSchemaInvalidKey | ( | ) |
Tests constructor: test schema, invalid key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionConstructorTestSchemaSecondaryKey | ( | ) |
Tests constructor: test schema, secondary database key.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionScenario1 | ( | ) |
Tests scenario with a Tripal DBX schema and 2 extra.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionScenario2 | ( | ) |
Tests scenario with a Tripal DBX schema and 2 extra.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testConnectionScenario3 | ( | ) |
Tests scenario for prefixTables with extra schema modified.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testExecuteSqlFile | ( | ) |
Tests ::executeSqlQueries with force search_path.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testExecuteSqlQueries | ( | ) |
Tests ::executeSqlQueries.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testExecuteSqlQueriesForceSearchPath | ( | ) |
Tests ::executeSqlQueries with force search_path.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testPrefixNoExtraSchema | ( | ) |
Tests ::prefixTables with a Tripal DBX schema but no extra.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testPrefixNoSchema | ( | ) |
Tests ::prefixTables with no Tripal DBX schema.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testSchemaChange | ( | ) |
Tests schema name changes with TripalDbxSchema object.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testSchemaNameChangeImpacts | ( | ) |
Tests schema name changes impacts on other members and methods.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testSchemaNoSchema | ( | ) |
Tests ::schema when no schema was set.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testSetExtraSchemaOne | ( | ) |
Tests ::setExtraSchema with index 1.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testSetExtraSchemaZero | ( | ) |
Tests ::setExtraSchema with index 0.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testTablePrefix | ( | ) |
Tests ::tablePrefix.
| Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest::testToString | ( | ) |
Tests ::__toString.
|
staticprotected |
{}
|
protected |
Test members.
"pro*" members are prophesize objects while their "non-pro*" equivqlent are the revealed objects.