|
Tripal
|


Public Member Functions | |
| testReadValueAction () | |
| testReadValueActionTableAlias () | |
| testReadValueActionJoin () | |
| testReadValueActionJoinDouble () | |
| testReadValueActionNoStore () | |
Protected Member Functions | |
| setUp () | |
Protected Attributes | |
| $fields = [] | |
| $yaml_file = __DIR__ . "/ChadoStorageActions-FieldDefinitions.yml" | |
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 |
Static Protected Attributes inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase | |
| static | $modules = ['tripal', 'tripal_biodb', 'tripal_chado'] |
Tests that specific ChadoStorage actions perform as expected.
@group Tripal @group Tripal Chado @group ChadoStorage @group ChadoStorage Actions
|
protected |
{{}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueAction | ( | ) |
Test the read_value action.
Chado Table: project Columns: project_id*, name*, description
Specifically,
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionJoin | ( | ) |
Test read_value through a join.
Base Table: Stock Columns: stock_id Chado Table: cvterm Columns: name
Specically, testing that we can read the cvterm name for a stock record through the stock > stock_cvterm > cvterm join path.
Again focusing on load since this action type does not impact insert/update.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionJoinDouble | ( | ) |
Test read_value through a join where two fields access the same tables.
Base Table: arraydesign Columns: arraydesign_id*, manufacturer_id, platformtype_id*, substratetype_id*, name Chado Table: dbxref Columns: accession
Specically, testing that we can read the database reference for an arraydesign record through the arraydesign > cvterm > dbxref path for two separate fields without their being data swap between them.
Again focusing on load since this action type does not impact insert/update.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionNoStore | ( | ) |
Test read_value works when there is no store on the same column.
Chado Table: project Columns: project_id*, name*, description
Specifically testing that we can read the project name for an existing project record when there is no store property for the project name.
Again focusing on load since this action type does not impact insert/update.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionTableAlias | ( | ) |
Test the read_value action works with table alias.
Chado Table: project Columns: project_id*, name*, description
Specifically, ensure that a property with the read_value action