|
Tripal
|


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 |
Tests the Organism Autocomplete Form Element.
@group Tripal @group Tripal Chado @group Organism Autocomplete Form Element
|
static |
Provides data for the testFormElement() method.
|
protected |
{{{}}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest::testChadoOrganismFormElementController | ( | ) |
Tests the organism form element.
| Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest::testFormElement | ( | string | $scenario, |
| array | $elements, | ||
| mixed | $dafault, | ||
| array | $options, | ||
| array | $expected | ||
| ) |
Tests the organism form element generation.
| string | $scenario | A short description of the scenario being tested. |
| array | $elements | The form element array. |
| mixed | $dafault | The default value, either an integer organism_id or a string with the organism name and id in parentheses at the end. |
| array | $options | An 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 | $expected | An 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