|
Tripal
|


Public Member Functions | |
| testTripalPublishServiceSingleJob () | |
| testTripalPublishService2Jobs () | |
Protected Member Functions | |
| setUp () | |
| countFieldTable (string $table_name) | |
| getPublicTableRecords (string $table_name, string $key) | |
| getChadoTableRecords (string $table_name, string $key) | |
Protected Member Functions inherited from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase | |
| prepareEnvironment (array $functionality) | |
Protected Attributes | |
| $defaultTheme = 'stark' | |
| $connection | |
| $public | |
| $chado_publish | |
| string | $mock_warning = '' |
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', 'path', 'path_alias', 'tripal', 'tripal_chado', 'views', 'field'] |
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 publish service for chado-based content types.
@group TripalBackendPublish @group ChadoPublish
|
protected |
Returns a count of number of entries in a Drupal field table.
| string | $table_name | The name of the table in the public schema. |
|
protected |
Returns all the records from a Chado table.
| string | $table_name | The name of the table in the chado schema. |
| string | $key | The name of the column for the key of the returned array. |
|
protected |
Returns all the records from a Drupal field table.
| string | $table_name | The name of the table in the public schema. |
| string | $key | The name of the column for the key of the returned array. |
|
protected |
{{{}}}
Reimplemented from Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
| Drupal\Tests\tripal\Kernel\ChadoPublishTest::testTripalPublishService2Jobs | ( | ) |
A very simple test to run TWO publish jobs and check it created entities and populated fields.
This test is not ideal but is better than nothing ;-)
We are doing the test here to avoid mocking anything and to test publishing of chado-focused content types.
| Drupal\Tests\tripal\Kernel\ChadoPublishTest::testTripalPublishServiceSingleJob | ( | ) |
A very simple test to run the publish job and check it created entities and populated fields.
This test is not ideal but is better than nothing ;-)
We are doing the test here to avoid mocking anything and to test publishing of chado-focused content types.