Tripal
Loading...
Searching...
No Matches
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 Member Functions inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase
 prepareEnvironment (array $functionality)
 

Protected Attributes

 $fields = []
 
 $yaml_file = __DIR__ . "/ChadoContactDefault-FieldDefinitions.yml"
 
array $contact_id
 
- Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
 $messenger = NULL
 
 $logger = NULL
 
 $fileretriever = NULL
 
 $publish_manager = NULL
 

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']
 
- Static Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
static $modules = ['tripal']
 

Detailed Description

Tests Chadostorage.

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: ChadoContactDefault 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: 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: