Tripal
All Classes Files Functions Variables Modules Pages
Public Member Functions | List of all members
Tests\tripal_chado\fields\ChadoFieldGetValuesListTest Class Reference
Inheritance diagram for Tests\tripal_chado\fields\ChadoFieldGetValuesListTest:
Inheritance graph
[legend]
Collaboration diagram for Tests\tripal_chado\fields\ChadoFieldGetValuesListTest:
Collaboration graph
[legend]

Public Member Functions

 testBaseTableColumns ($field_name, $bundle_name, $info)
 
 getBaseFields ()
 
 testBaseTableForeignKey ($field_name, $bundle_name, $info)
 
 getBaseFkFields ()
 
 testNonBaseTable ($field_name, $bundle_name, $info)
 
 getNonBaseFields ()
 

Detailed Description

Test ChadoField->getValueList() Method.

Member Function Documentation

◆ getBaseFields()

Tests\tripal_chado\fields\ChadoFieldGetValuesListTest::getBaseFields ( )

DataProvider: a list of fields who store their data in the base table of a bundle.

Each element describes a field instance and consists of:

  • the machine name of the field (e.g. obi__organism).
  • the machine name of the bundle (e.g. bio_data_17).
  • an array of additional information including:
    • instance_info: information about the field instance.
    • field_info: information about the field.
    • bundle: the TripalBundle object.
    • bundle_base_table: if applicable, the chado base table the bundle stores it's data in.
    • base_schema: the Tripal Schema array for the bundle_base_table.

◆ getBaseFkFields()

Tests\tripal_chado\fields\ChadoFieldGetValuesListTest::getBaseFkFields ( )

DataProvider: a list of fields who store their data in the base table of a bundle.

Each element describes a field instance and consists of:

  • the machine name of the field (e.g. obi__organism).
  • the machine name of the bundle (e.g. bio_data_17).
  • an array of additional information including:
    • instance_info: information about the field instance.
    • field_info: information about the field.
    • bundle: the TripalBundle object.
    • bundle_base_table: if applicable, the chado base table the bundle stores it's data in.
    • base_schema: the Tripal Schema array for the bundle_base_table.

◆ getNonBaseFields()

Tests\tripal_chado\fields\ChadoFieldGetValuesListTest::getNonBaseFields ( )

DataProvider: a list of fields who store their data in the base table of a bundle.

Each element describes a field instance and consists of:

  • the machine name of the field (e.g. obi__organism).
  • the machine name of the bundle (e.g. bio_data_17).
  • an array of additional information including:
    • instance_info: information about the field instance.
    • field_info: information about the field.
    • bundle: the TripalBundle object.
    • bundle_base_table: if applicable, the chado base table the bundle stores it's data in.
    • base_schema: the Tripal Schema array for the bundle_base_table.

◆ testBaseTableColumns()

Tests\tripal_chado\fields\ChadoFieldGetValuesListTest::testBaseTableColumns (   $field_name,
  $bundle_name,
  $info 
)

Test getValueList for fields based on columns in the base table.

@dataProvider getBaseFields

@group fields @group getValueList

◆ testBaseTableForeignKey()

Tests\tripal_chado\fields\ChadoFieldGetValuesListTest::testBaseTableForeignKey (   $field_name,
  $bundle_name,
  $info 
)

Test for fields based on columns in the base table that are also foreign keys.

@dataProvider getBaseFkFields @group current @group fields @group getValueList

◆ testNonBaseTable()

Tests\tripal_chado\fields\ChadoFieldGetValuesListTest::testNonBaseTable (   $field_name,
  $bundle_name,
  $info 
)

Test for fields based on tables besides the base one for the bundle. CURRENTLY RETRIEVING VALUES FOR THESE TABLES IS NOT SUPPORTED.

@dataProvider getNonBaseFields

@group fields @group getValueList


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