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

Public Member Functions

 retrieveCurrentScenario (int $current_scenario_key, string $current_scenario_label)
 

Static Public Member Functions

static provideScenarios ()
 

Protected Member Functions

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

Protected Attributes

string $yaml_info_file = __DIR__ . '/OboImporter-TestInfo.yml'
 
object $drupal_connection
 
object $chado_connection
 
array $mock_messages = []
 
 $user
 
array $system_under_test
 
array $scenarios
 
- Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
 $messenger = NULL
 
 $logger = NULL
 
 $fileretriever = NULL
 
 $publish_manager = NULL
 

Static Protected Attributes

static $modules = ['user', 'tripal', 'tripal_chado', 'tripal_biodb']
 
- 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 for the OBO ontology importer.

@group TripalImporter @group ChadoImporter @group OntologyImporter

Member Function Documentation

◆ populateMviewSql()

Drupal\Tests\tripal_chado\Functional\OboImporterTest::populateMviewSql ( )
protected

Sets up the two materialized views needed for the importer.

The mviews are populated when the importer postRun() is called.

◆ provideScenarios()

static Drupal\Tests\tripal_chado\Functional\OboImporterTest::provideScenarios ( )
static

Data Provider: works with the YAML to provide scenarios for testing.

Returns
array List of scenarios to test where each one matches a key and label in the associated YAML scenarios.

◆ retrieveCurrentScenario()

Drupal\Tests\tripal_chado\Functional\OboImporterTest::retrieveCurrentScenario ( int  $current_scenario_key,
string  $current_scenario_label 
)

Retrieves the current scenario based on the data provider.

NOTE: Also ensures the type_ids match what is currently in the database.

Parameters
int$current_scenario_keyThe key of the scenario in the YAML.
string$current_scenario_labelThe label of the scenario in the YAML.
Returns
array The scenario to be tested as defined in the YAML.

◆ setUp()

Drupal\Tests\tripal_chado\Functional\OboImporterTest::setUp ( )
protected

Member Data Documentation

◆ $modules

Drupal\Tests\tripal_chado\Functional\OboImporterTest::$modules = ['user', 'tripal', 'tripal_chado', 'tripal_biodb']
staticprotected

{}


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