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\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest Class Reference
Inheritance diagram for Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest:
Collaboration graph
[legend]

Public Member Functions

 testCreateViaCombinedAddFieldForm ($field_type_name, $valid_options)
 

Static Public Member Functions

static provideFieldsToTest ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $defaultTheme = 'stark'
 
 $type = 'gene'
 
 $connection
 
- Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase
 $defaultTheme = 'stark'
 

Static Protected Attributes

static $modules = ['system', 'user', 'path', 'path_alias', 'field', 'field_ui', 'tripal', 'tripal_chado']
 
static array $field_types
 
- Static Protected Attributes inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase
static $modules = ['tripal', 'tripal_biodb', 'tripal_chado']
 
- Static Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase
static $modules = ['tripal']
 

Additional Inherited Members

- Public Attributes inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase
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 configuration for where a basic chado field is added to an existing content type. Specific field types tested are below in the $field_types property –these are fields that act on individual columns in the base table and require their column to be set in the field storage settings.

@group ChadoField

Member Function Documentation

◆ provideFieldsToTest()

static Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest::provideFieldsToTest ( )
static

Data Provider: provides a list of the basic fields to test.

◆ setUp()

Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest::setUp ( )
protected

◆ testCreateViaCombinedAddFieldForm()

Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest::testCreateViaCombinedAddFieldForm (   $field_type_name,
  $valid_options 
)

Tests adding a basic field type via the combined add field form. @dataProvider provideFieldsToTest

This specifically refers to the form used in Drupal 10.2+ and thus will only be run on systems of the right Drupal version.

NOTE: Debugging pages use the following

  • to get the full HTML: print $this->getSession()->getPage()->getContent();
  • to get the plain text without markup: print $this->getTextContent();

Member Data Documentation

◆ $field_types

array Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest::$field_types
staticprotected
Initial value:
= [
'chado_integer_type_default',
'chado_boolean_type_default',
'chado_string_type_default',
'chado_text_type_default',
]

Provides a list of the field types we are testing with this class.

◆ $type

Drupal\Tests\tripal_chado\Functional\Plugin\Fields\CreateEditFieldForms\BasicDataTypeChadoFieldTest::$type = 'gene'
protected

The machine name of the Tripal Content Type used by tests in this class.


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