Tripal
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest Class Reference
Inheritance diagram for Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest:
Collaboration graph
[legend]

Public Member Functions

 testChadoOrganismFormElementController ()
 
 testFormElement (string $scenario, array $elements, mixed $dafault, array $options, array $expected)
 

Static Public Member Functions

static provideDataForTestFormElement ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase
 prepareEnvironment (array $functionality)
 

Protected Attributes

 $defaultTheme = 'stark'
 
 $connection
 
array $organisms
 
- Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
 $messenger = NULL
 
 $logger = NULL
 
 $fileretriever = NULL
 
 $publish_manager = NULL
 

Static Protected Attributes

static $modules = ['system', 'user', 'file', 'tripal', 'tripal_chado']
 
- 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']
 

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
 

Detailed Description

Tests the Organism Autocomplete Form Element.

@group Tripal @group Tripal Chado @group Organism Autocomplete Form Element

Member Function Documentation

◆ provideDataForTestFormElement()

static Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest::provideDataForTestFormElement ( )
static

Provides data for the testFormElement() method.

Returns
array An array containing the test scenarios.

◆ setUp()

Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest::setUp ( )
protected

◆ testChadoOrganismFormElementController()

Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest::testChadoOrganismFormElementController ( )

Tests the organism form element.

◆ testFormElement()

Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest::testFormElement ( string  $scenario,
array  $elements,
mixed  $dafault,
array  $options,
array  $expected 
)

Tests the organism form element generation.

Parameters
string$scenarioA short description of the scenario being tested.
array$elementsThe form element array.
mixed$dafaultThe default value, either an integer organism_id or a string with the organism name and id in parentheses at the end.
array$optionsAn array of options, including: select_limit - The maximum number of organisms to show in select element. match_limit - The maximum number of organisms to match in the autocomplete. size - The size of the textfield or select element.
array$expectedAn array of expected results, including: type - The expected type of form element, either 'select' or 'textfield'. default_value - The expected default value of the form element.

@dataProvider provideDataForTestFormElement


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