|
Tripal
|


Protected Member Functions | |
| setUp () | |
| prepareEnvironment (array $functionality) | |
Protected Attributes | |
| $messenger = NULL | |
| $logger = NULL | |
| $fileretriever = NULL | |
| $publish_manager = NULL | |
Static Protected Attributes | |
| static | $modules = ['tripal'] |
This is a base class for Tripal Kernel tests.
It provides helper methods to create various Tripal-focused objects during testing like Tripal content types, Tripal Content, and Tripal Terms.
@group Tripal
|
protected |
Prepare kernel environments to support specific functionality.
This method is focused on making it easier to write kernel test for Tripal functionality. Simply pass in the parts of Tripal core you need in your tests and this method will handle any dependencies to install all the needed schema + config associated with that functionality. Additionally it will try to warn you if your modules array is missing entries with a more user friendly failure then the typical one provided by Drupal.
| array | $functionality | A list of functionality you need to support. Although this method handles dependencies, you should include all items in the supported keys below that you need. This is because in some cases you will want to mock rather then include in your kernel tests and this way, this method supports that. Supported keys are:
|
Reimplemented in Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase.
|
protected |
{}
Reimplemented in Drupal\Tests\tripal\Kernel\Api\TripalApi\apiTest, Drupal\Tests\tripal\Kernel\configTest, Drupal\Tests\tripal\Kernel\Controller\PubSearchQueryNameAutocompleteController\PubSearchQueryNameAutocompleteControllerTest, Drupal\Tests\tripal\Kernel\Entity\TripalEntityFieldTest, Drupal\Tests\tripal\Kernel\Entity\TripalEntitySettingsFormTest, Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest, Drupal\Tests\tripal\Kernel\Services\TripalCitation\TripalCitationTest, Drupal\Tests\tripal\Kernel\Services\TripalEntityTypeCollection\TripalEntityTypeCollectionCreateTest, Drupal\Tests\tripal\Kernel\Services\TripalEntityTypeCollection\TripalEntityTypeCollectionGetCollectionsTest, Drupal\Tests\tripal\Kernel\Services\TripalEntityTypeCollection\TripalEntityTypeCollectionInstallTest, Drupal\Tests\tripal\Kernel\Services\TripalEntityTypeCollection\TripalEntityTypeCollectionValidateTest, Drupal\Tests\tripal\Kernel\Services\TripalFileRetriever\TripalFileRetrieverTest, Drupal\Tests\tripal\Kernel\Services\TripalJob\CallablesJobTest, Drupal\Tests\tripal\Kernel\TripalPublishFormTest, Drupal\Tests\tripal\Kernel\TripalPublishFormWithMockTest, Drupal\Tests\tripal\Kernel\TripalDBX\ConnectionTest, Drupal\Tests\tripal\Kernel\TripalDBX\SchemaTest, Drupal\Tests\tripal\Kernel\TripalDBX\TripalDbxFunctionalTest, Drupal\Tests\tripal\Kernel\TripalField\TripalFieldTypeCRUDTest, Drupal\Tests\tripal\Kernel\TripalField\TripalFieldTypeSettingsTest, Drupal\Tests\tripal\Kernel\TripalImporterBaseTest, Drupal\Tests\tripal\Kernel\TripalImporterFormBuildTest, Drupal\Tests\tripal\Kernel\TripalImporter\TripalImporterFormSubmitTest, Drupal\Tests\tripal\Kernel\TripalStorage\DrupalSqlStorageTest, Drupal\Tests\tripal\Kernel\TripalStorage\PropertyBaseClassTest, Drupal\Tests\tripal\Kernel\TripalStorage\PropertyTypeClassTest, Drupal\Tests\tripal\Kernel\TripalStorage\PropertyValueClassTest, Drupal\Tests\tripal\Kernel\TripalStorage\TripalStorageTest, Drupal\Tests\tripal_biodb\Kernel\Task\BioTaskBaseTest, Drupal\Tests\tripal_biodb\Unit\Lock\PersistentDatabaseSharedLockBackendTest, Drupal\Tests\tripal_chado\Kernel\ChadoTestKernelBase, Drupal\Tests\tripal_chado\Kernel\ChadoAutocompleteControllerTest, Drupal\Tests\tripal_chado\Kernel\ChadoOrganismFormElementControllerTest, Drupal\Tests\tripal_chado\Kernel\Entity\TripalEntityChadoFieldTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoBuddy\ChadoBuddyBaseTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoBuddy\ChadoCvtermBuddyTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoBuddy\ChadoDbxrefBuddyTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoBuddy\ChadoPropertyBuddyTest, Drupal\Tests\tripal_chado\Kernel\ChadoField\FieldType\ChadoPropertyTypeCRUDTest, Drupal\Tests\tripal_chado\Kernel\ChadoField\FieldType\ChadoPropertyWidgetFormTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoAnalysisDefaultTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoContactDefaultTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoLinkerPropertyDefaultTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_ReadValueTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StoreIdTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StoreLinkTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StorePkeyTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageActions_StoreTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageDeleteValuesTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageFindValuesTest, Drupal\Tests\tripal_chado\Kernel\Plugin\ChadoStorage\ChadoStorageLinkerFieldTest, Drupal\Tests\tripal\Kernel\ChadoPublishTest, Drupal\Tests\tripal_chado\Kernel\Plugin\TripalImporter\ChadoImporterBaseTest, Drupal\Tests\tripal_chado\Kernel\Plugin\TripalImporter\ChadoImporterTransactionTest, Drupal\Tests\tripal_chado\Kernel\Plugin\TripalImporter\ImporterFormTest, Drupal\Tests\tripal_chado\Functional\OboImporterTest, Drupal\Tests\tripal_chado\Kernel\Plugin\TripalVocabTerms\ChadoVocabTermsTest, Drupal\Tests\tripal\Kernel\SyncTripalFieldStorageTest, Drupal\Tests\tripal\Kernel\TripalEntityLookupServiceTest, Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionInheritedTest, Drupal\Tests\tripal\Kernel\TripalDBX\ChadoConnectionTest, Drupal\Tests\tripal\Kernel\TripalDBX\ChadoSchemaTest, Drupal\Tests\tripal_layout\Kernel\Controller\TripalLayoutControllerDetailsTest, Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest, Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntityFormTest, and Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntityListTest.