|
Tripal
|


Public Member Functions | |
| testPhylotreeBaseTableFieldCRUD () | |
| testQuantificationBaseTableFieldCRUD () | |
Protected Member Functions | |
| setUp () | |
Protected Attributes | |
| $fields = [] | |
| $yaml_file = __DIR__ . "/ChadoAnalysisDefault-FieldDefinitions.yml" | |
| array | $analysis_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 ChadoAnalysisDefault field with values filled based on two base tables: phylotree, quantification.
Note: quantification is not a typically created content type but we can test it in this manner anyway as the tests are in the kernel environment and do not interact with content types and fields attached to them but rather focuses on the property types/values directly. This also allows us to test phylotree directly even though at the time of writing this test, there is no dbxref_id field attached to phylotree.
Note: testotherphylotreefield and testotherquantificationfield are added to ensure we meet the unique constraints on the phylotree and quantification tables respectively.
Specific test cases:
@group Tripal @group Tripal Chado @group ChadoStorage @group ChadoStorage Fields
|
protected |
{{}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest::testPhylotreeBaseTableFieldCRUD | ( | ) |
Testing ChadoStorage with the ChadoAnalysisDefault field on a phylotree content type.
Test Cases:
| Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest::testQuantificationBaseTableFieldCRUD | ( | ) |
Testing ChadoStorage with the ChadoAnalysisDefault field on a quantification content type.
Test Cases: