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

Public Member Functions

 addChadoOrganism ($chado, $details)
 
 addChadoProject ($chado, $details)
 
 addChadoContact ($chado, $details)
 
 addChadoProjectContact ($chado, $details)
 
 addChadoStock ($chado, $details)
 
 addChadoProjectStock ($chado, $details)
 
 addChadoArrayDesign ($chado, $details)
 
 addProperty ($chado, $base_table, $details)
 
 checkFieldItem ($bundle, $field_name, $num_expected, $match, $check)
 

Static Protected Attributes

static $modules = ['user', 'path', 'tripal', 'tripal_chado']
 
- 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
 
- Protected Member Functions inherited from Drupal\Tests\tripal_chado\Functional\ChadoTestBrowserBase
 setUp ()
 
- Protected Attributes inherited from Drupal\Tests\tripal\Functional\TripalTestBrowserBase
 $defaultTheme = 'stark'
 

Detailed Description

Tests the TripalPublish service in the context of the Chado content types.

@group Tripal @group Tripal Content

Member Function Documentation

◆ addChadoArrayDesign()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoArrayDesign (   $chado,
  $details 
)

A helper function for adding an array design record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the array design. The keys correspond to the columns of the arraydesign table.
Returns
int The arraydesign_id.

◆ addChadoContact()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoContact (   $chado,
  $details 
)

A helper function for adding a contact record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the contact. The keys correspond to the columns of the contact table.
Returns
int The contact_id.

◆ addChadoOrganism()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoOrganism (   $chado,
  $details 
)

A helper function for adding an organism record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the organism. The keys correspond to the columns of the organism table.
Returns
int The organism_id.

◆ addChadoProject()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoProject (   $chado,
  $details 
)

A helper function for adding a project record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the project. The keys correspond to the columns of the project table.
Returns
int The project_id.

◆ addChadoProjectContact()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoProjectContact (   $chado,
  $details 
)

A helper function for adding a project_contact record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the project_contact. The keys correspond to the columns of the project_contact table.
Returns
int The project_contact_id.

◆ addChadoProjectStock()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoProjectStock (   $chado,
  $details 
)

A helper function for adding a project_stock record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the project_stock. The keys correspond to the columns of the project_stock table.
Returns
int The project_stock_id.

◆ addChadoStock()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addChadoStock (   $chado,
  $details 
)

A helper function for adding a stock record to Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
array$detailsThe key/value pairs of entries for the stock. The keys correspond to the columns of the stock table.
Returns
int The stock_id.

◆ addProperty()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::addProperty (   $chado,
  $base_table,
  $details 
)

A helper function for adding a property to a record in Chado.

Parameters
\Drupal\tripal\TripalDBX\TripalDbxConnection$chadoA chado database object.
string$base_tableThe base table to which the property should be added.
array$detailsThe key/value pairs of entries for the property. The keys correspond to the columns of the property table.
Returns
int The property primary key.

◆ checkFieldItem()

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::checkFieldItem (   $bundle,
  $field_name,
  $num_expected,
  $match,
  $check 
)

A helper function to test if the elements of a field item are present.

Parameters
string$bundleThe content type bundle name (e.g. 'organism').
string$field_nameThe name of the field that should be queried.
int$num_expectedThe number of items that are expected to be found when applying the conditions specified in the $match argument.
array$matchAn array of key/value pairs where the keys are the column names of field table in Drupal and the values are those to match in a select condition. All fields other than the 'entity_id', 'bundle', 'delta' 'deleted', 'langcode', and 'revision' have the field name as a prefix. But the keys need not include the prefix, just the field property key. The field name prefix will be added automatically.
array$checkAn array of key/value pairs where the keys are the column names of the field table in Drupal and the values are checked that they match what is in the table. The same rules apply for the key naming as in the $match argument.

Member Data Documentation

◆ $modules

Drupal\Tests\tripal_chado\Functional\Service\ChadoTripalPublishTest::$modules = ['user', 'path', 'tripal', 'tripal_chado']
staticprotected

{}


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