Tripal
Public Member Functions | Protected Attributes | List of all members
Drupal\Tests\tripal_chado\Functional\MockClass\FieldConfigMock Class Reference
Inheritance diagram for Drupal\Tests\tripal_chado\Functional\MockClass\FieldConfigMock:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_chado\Functional\MockClass\FieldConfigMock:
Collaboration graph
[legend]

Public Member Functions

 setMock ($details)
 
 getLabel ()
 
 getSettings ()
 
 __construct (array $values, $entity_type='field_config')
 

Protected Attributes

 $Mocklabel = ''
 
 $Mocksettings = ''
 

Detailed Description

A Mock FieldConfig class to be used in the ChadoStorage testing.

Member Function Documentation

◆ getLabel()

Drupal\Tests\tripal_chado\Functional\MockClass\FieldConfigMock::getLabel ( )

{}

◆ getSettings()

Drupal\Tests\tripal_chado\Functional\MockClass\FieldConfigMock::getSettings ( )

{}

◆ setMock()

Drupal\Tests\tripal_chado\Functional\MockClass\FieldConfigMock::setMock (   $details)

Sets the mocked details to use for the test.

Parameters
array$details
  • label (string)
  • settings (array):
    • storage_plugin_id (string; e.g. chado_storage)
    • storage_plugin_settings (array):
      • base_table (string; e.g. feature)
      • property_settings (array)
        • value (array)
          • action (string; one of store, join, replace, function)
          • chado_table (string; must match above)
          • chado_column (string; name)

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