| 
    Tripal
    
   | 
 


Public Member Functions | |
| testDefaultTablePrefixing () | |
| testChadoQueryBuilding () | |
| testFindVersion () | |
  Public Member Functions inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase | |
| createTripalTerm ($values, $idspace_plugin_id, $vocab_plugin_id) | |
| createTripalContent ($values=[]) | |
| createTripalContentType ($values=[]) | |
Static Protected Attributes | |
| static | $modules = ['tripal', 'tripal_chado'] | 
  Static Protected Attributes inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase | |
| static | $modules = ['tripal', 'tripal_biodb', 'tripal_chado'] | 
  Static Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase | |
| static | $modules = ['tripal'] | 
Additional Inherited Members | |
  Public Attributes inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase | |
| 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 Member Functions inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase | |
| setUp () | |
  Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase | |
| $defaultTheme = 'stark' | |
Tests for the Chado Connection implementation of Tripal DBX Connection.
@group Tripal @group Tripal TripalDBX @group Tripal TripalDBX Connection @group TripalDBX Chado
| Drupal\Tests\tripal_chado\Functional\ChadoConnectionTest::testChadoQueryBuilding | ( | ) | 
Tests the Drupal query builders while quering chado.
| Drupal\Tests\tripal_chado\Functional\ChadoConnectionTest::testDefaultTablePrefixing | ( | ) | 
Tests table prefixing by the ChadoConnection + TripalDbxConnection classes.
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.
| Drupal\Tests\tripal_chado\Functional\ChadoConnectionTest::testFindVersion | ( | ) | 
This tests the ChadoConnection::findVersion() method.
We will test that the version can be obtained from the test schema when it is generated in the following ways:
Furthermore, we will test both when the findVersion() method is called with A. no parameters B. schema name supplied C. exact version requested.
      
  | 
  staticprotected | 
{}