Tripal
All Classes Files Functions Variables Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Drupal\Tests\tripal\Kernel\TripalImporterBaseTest Class Reference
Inheritance diagram for Drupal\Tests\tripal\Kernel\TripalImporterBaseTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal\Kernel\TripalImporterBaseTest:
Collaboration graph
[legend]

Public Member Functions

 testTripalImporterManager ()
 
 testTripalImporterBase ()
 
 testTripalImporterBaseJobs ()
 
 testTripalImporterBaseFiles ()
 
 testTripalImporterBaseProgress ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

 $defaultTheme = 'stark'
 
 $plugin_definition
 
 $test_file
 

Static Protected Attributes

static $modules = ['system', 'user', 'file', 'tripal']
 

Detailed Description

Tests the base functionality for importers.

Cannot test actually implemented importers as those require database specific implementations.

@group TripalImporter

Member Function Documentation

◆ setUp()

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::setUp ( )
protected

{}

◆ testTripalImporterBase()

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::testTripalImporterBase ( )

Tests focusing on the Tripal importer base class. Specifically, createImportJob(), load(), and getArguments() methods.

@group tripal_importer

◆ testTripalImporterBaseFiles()

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::testTripalImporterBaseFiles ( )

Tests focusing on the Tripal importer base class. Specifically, prepareFiles() and cleanFile() methods.

@group tripal_importer

◆ testTripalImporterBaseJobs()

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::testTripalImporterBaseJobs ( )

Tests focusing on the Tripal importer base class. Specifically, submitJob() and setJob() methods.

@group tripal_importer

◆ testTripalImporterBaseProgress()

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::testTripalImporterBaseProgress ( )

Tests focusing on the Tripal importer base class. Specifically, setTotalItems(), addItemsHandled(), setItemsHandled(), setInterval().

@group tripal_importer

◆ testTripalImporterManager()

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::testTripalImporterManager ( )

Tests focusing on the Tripal Importer plugin system.

@group tripal_importer

Member Data Documentation

◆ $plugin_definition

Drupal\Tests\tripal\Kernel\TripalImporterBaseTest::$plugin_definition
protected
Initial value:
= [
'id' => 'fakeImporterName',
'label' => 'Gemstone Loader',
'description' => 'Imports details on the incredible diversity of gemstones created by our earth into Chado.',
'file_types' => ["gem", "txt"],
'upload_description' => "Please provide a plain text, tab-delimited file of gemstone descriptions making sure to include the details which make them most unique and beautiful.",
'upload_title' => 'Gemstone Descriptions',
'use_analysis' => FALSE,
'require_analysis' => FALSE,
'button_text' => 'Import file',
'file_upload' => FALSE,
'file_load' => FALSE,
'file_remote' => FALSE,
'file_required' => FALSE,
'cardinality' => 1,
]

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