Tripal
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest Class Reference
Inheritance diagram for Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest:
Collaboration graph
[legend]

Public Member Functions

 testTripalLayoutEntityGetters (string $display_context, array $entity_defn, array $bundle_defn, array $expectations)
 

Static Public Member Functions

static provideLayoutDisplayEntitySenarios ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
 prepareEnvironment (array $functionality)
 

Static Protected Attributes

static $modules = ['system', 'field', 'user', 'tripal', 'tripal_layout']
 
- Static Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
static $modules = ['tripal']
 

Additional Inherited Members

- Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
 $messenger = NULL
 
 $logger = NULL
 
 $fileretriever = NULL
 
 $publish_manager = NULL
 

Detailed Description

Tests the TripalLayoutDefaultView and TripalLayoutDefaultForm entities.

@group TripalLayoutDisplay @group TripalLayoutDisplayEntity

Member Function Documentation

◆ provideLayoutDisplayEntitySenarios()

static Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest::provideLayoutDisplayEntitySenarios ( )
static

Provides senarios for layout display.

This provides scenarios to test the TripalLayoutDefaultView and TripalLayoutDefaultForm entities.

Returns
array An array of senarios to test.

◆ setUp()

Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest::setUp ( )
protected

◆ testTripalLayoutEntityGetters()

Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest::testTripalLayoutEntityGetters ( string  $display_context,
array  $entity_defn,
array  $bundle_defn,
array  $expectations 
)

Tests getters for a test TripalLayoutEntity.

Parameters
string$display_contextThe type of display entity we are testing. One of 'view' or 'form'.
array$entity_defnDetails about the TripalLayoutEntity we are testing. Expected keys include: class, id, yaml_file.
array$bundle_defnDetails about the TripalEntityType whose display we want to test. Expected keys include: id.
array$expectationsAn array of expectations for this test. Keys include:
  • num_layouts: the number of layouts in the file.
  • layouts: an list of the tripal_entity_type the layouts are for.
Returns
void No return value.

@dataProvider provideLayoutDisplayEntitySenarios

Member Data Documentation

◆ $modules

Drupal\Tests\tripal_layout\Kernel\Entity\TripalLayoutEntitiesTest::$modules = ['system', 'field', 'user', 'tripal', 'tripal_layout']
staticprotected

{}


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