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

Public Member Functions

 testStoreIdAction ()
 
 testStoreIdActionNotBase ()
 
 testStoreIdActionTableAlias ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $fields = []
 
 $yaml_file = __DIR__ . "/ChadoStorageActions-FieldDefinitions.yml"
 

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 specific ChadoStorage actions perform as expected.

@group Tripal @group Tripal Chado @group ChadoStorage @group ChadoStorage Actions

Member Function Documentation

◆ setUp()

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

◆ testStoreIdAction()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StoreIdTest::testStoreIdAction ( )

Test the store_id action.

Chado Table: db Columns: db_id*, name*

Specifically, ensure that a property with the store_id action

  • and a NULL value can insert a new record
  • has the value set on load
  • does not get changed on update

◆ testStoreIdActionNotBase()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StoreIdTest::testStoreIdActionNotBase ( )

Test the store_id action.

Chado Table: db Columns: db_id*, name*

Specifically, ensure that a property with the store_id action MUST BE associated with the base table of the field BUT NEED NOT BE a typical base table.

◆ testStoreIdActionTableAlias()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StoreIdTest::testStoreIdActionTableAlias ( )

Test the store_id action.

Chado Table: db Columns: db_id*, name*

Specifically, ensure that a property with the store_id action DOES NOT try to set a table alias.


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