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

Public Member Functions

 testStudyBaseTableFieldCRUD ()
 
 testArrayDesignBaseTableFieldCRUD ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $fields = []
 
 $yaml_file = __DIR__ . "/ChadoContactDefault-FieldDefinitions.yml"
 
array $contact_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 ChadoContactDefault field with values filled based on two base tables: study and arraydesign.

Note that the arraydesign table is a bit unusal, since the relevant column is 'manufacturer_id' which corresponds to 'contact_id' in the contact table.

Specific test cases:

@group Tripal @group Tripal Chado @group ChadoStorage @group ChadoStorage Fields

Member Function Documentation

◆ setUp()

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

◆ testArrayDesignBaseTableFieldCRUD()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoContactDefaultTest::testArrayDesignBaseTableFieldCRUD ( )

Testing ChadoStorage with the ChadoContactDefault field on an arraydesign 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.

◆ testStudyBaseTableFieldCRUD()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoContactDefaultTest::testStudyBaseTableFieldCRUD ( )

Testing ChadoStorage with the ChadoContactDefault field on a study 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: