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

Public Member Functions

 testReadValueAction ()
 
 testReadValueActionTableAlias ()
 
 testReadValueActionJoin ()
 
 testReadValueActionJoinDouble ()
 
 testReadValueActionNoStore ()
 

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_ReadValueTest::setUp ( )
protected

◆ testReadValueAction()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueAction ( )

Test the read_value action.

Chado Table: project Columns: project_id*, name*, description

Specifically,

  • Ensure that a property with the read_value action has the value set
  • Ensure that a property with the read_value action can't change the value
  • That two fields accessing the same chado column do not conflict A. both read_value action for the same column B. one read_value and one store for the same column

◆ testReadValueActionJoin()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionJoin ( )

Test read_value through a join.

Base Table: Stock Columns: stock_id Chado Table: cvterm Columns: name

Specically, testing that we can read the cvterm name for a stock record through the stock > stock_cvterm > cvterm join path.

Again focusing on load since this action type does not impact insert/update.

◆ testReadValueActionJoinDouble()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionJoinDouble ( )

Test read_value through a join where two fields access the same tables.

Base Table: arraydesign Columns: arraydesign_id*, manufacturer_id, platformtype_id*, substratetype_id*, name Chado Table: dbxref Columns: accession

Specically, testing that we can read the database reference for an arraydesign record through the arraydesign > cvterm > dbxref path for two separate fields without their being data swap between them.

Again focusing on load since this action type does not impact insert/update.

◆ testReadValueActionNoStore()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionNoStore ( )

Test read_value works when there is no store on the same column.

Chado Table: project Columns: project_id*, name*, description

Specifically testing that we can read the project name for an existing project record when there is no store property for the project name.

Again focusing on load since this action type does not impact insert/update.

◆ testReadValueActionTableAlias()

Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest::testReadValueActionTableAlias ( )

Test the read_value action works with table alias.

Chado Table: project Columns: project_id*, name*, description

Specifically, ensure that a property with the read_value action

  • Can be used with a table alias. Focusing on load since this action type does not impact insert/update.

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