Tripal
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest Class Reference
Inheritance diagram for Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest:
Collaboration graph
[legend]

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']
 

Detailed Description

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

Member Function Documentation

◆ setUp()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest::setUp ( )
protected

◆ testPhylotreeBaseTableFieldCRUD()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest::testPhylotreeBaseTableFieldCRUD ( )

Testing ChadoStorage with the ChadoAnalysisDefault field on a phylotree content type.

Test Cases:

  • Create Values in Chado using ChadoStorage when they don't yet exist.
  • Load values in Chado using ChadoStorage after we just inserted them.
  • Update values in Chado using ChadoStorage after we just inserted them.

◆ testQuantificationBaseTableFieldCRUD()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest::testQuantificationBaseTableFieldCRUD ( )

Testing ChadoStorage with the ChadoAnalysisDefault field on a quantification content type.

Test Cases:

  • Create Values in Chado using ChadoStorage when they don't yet exist.
  • Load values in Chado using ChadoStorage after we just inserted them.
  • Update values in Chado using ChadoStorage after we just inserted them.

The documentation for this class was generated from the following file: