|
Tripal
|


Public Member Functions | |
| provideSinglePropFieldNames () | |
| testCRUDForSinglePropField ($prop_field_name) | |
| provideMultiplePropFields () | |
| testCRUDForMultiplePropFields ($prop_field_settings) | |
Protected Member Functions | |
| setUp () | |
Protected Attributes | |
| $fields = [] | |
| $yaml_file = __DIR__ . "/ChadoLinkerPropertyDefault-FieldDefinitions.yml" | |
| int | $organism_id |
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 ChadoStorage can handle property fields as we expect. The array of fields/properties used for these tests are designed to match those in the ChadoLinkerPropertyDefault field with values filled based on a gene content type.
Note: testotherfeaturefield is added to ensure we meet the unique constraint on the base feature table and also to ensure we are testing multi-field functionality.
Note: We do not need to test invalid conditions for createValues() and updateValues() as these are only called after the entity has validated the system using validateValues(). Instead we test all invalid conditions are caught by validateValues().
Specific test cases Test the following for both single and multiple property fields:
@group Tripal @group Tripal Chado @group ChadoStorage @group ChadoStorage Fields
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoLinkerPropertyDefaultTest::provideMultiplePropFields | ( | ) |
Data Provider: Provide values for testing multiple property fields.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoLinkerPropertyDefaultTest::provideSinglePropFieldNames | ( | ) |
Data Provider: Test both the current store_link model and the old one.
|
protected |
{{}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoLinkerPropertyDefaultTest::testCRUDForMultiplePropFields | ( | $prop_field_settings | ) |
Testing ChadoStorage on multiple property fields, each with multiple values.
@dataProvider provideMultiplePropFields
Test Cases:
Focus on ensuring that the values from one field are in different chado records than those from the other field.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoLinkerPropertyDefaultTest::testCRUDForSinglePropField | ( | $prop_field_name | ) |
Testing ChadoStorage on single property field with multiple values.
@dataProvider provideSinglePropFieldNames
Test Cases: