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\Kernel\Entity\TripalEntityTokenFormatsTest Class Reference
Inheritance diagram for Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest:
Inheritance graph
[legend]
Collaboration diagram for Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest:
Collaboration graph
[legend]

Public Member Functions

 testTripalEntitySaveContent (int $current_scenario_key, string $current_scenario_label)
 
 testSetAliasOutsideOfSave ()
 

Static Public Member Functions

static provideScenarios ()
 

Protected Member Functions

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

Protected Attributes

object $drupal_connection
 
string $yaml_info_file = __DIR__ . '/TripalEntityTokenFormatsTest-TestInfo.yml'
 
array $system_under_test
 
string $bundle_name
 
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 = ['system', 'user', 'path', 'path_alias', 'field', 'datetime', 'tripal']
 
- Static Protected Attributes inherited from Drupal\Tests\tripal\Kernel\TripalTestKernelBase
static $modules = ['tripal']
 

Detailed Description

Tests the TripalEntity URL alias system specifically.

@group TripalEntity @group TripalTokenParser

Member Function Documentation

◆ provideScenarios()

static Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest::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.

◆ setUp()

Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest::setUp ( )
protected

◆ testSetAliasOutsideOfSave()

Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest::testSetAliasOutsideOfSave ( )

Updates the URL alias after create without saving the entity.

◆ testTripalEntitySaveContent()

Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest::testTripalEntitySaveContent ( int  $current_scenario_key,
string  $current_scenario_label 
)

Tests that TripalEntity::save() handles URL alias' + titles.

Parameters
int$current_scenario_keyThe key of the scenario in the YAML.
string$current_scenario_labelThe label of the scenario in the YAML.

@dataProvider provideScenarios

Member Data Documentation

◆ $modules

Drupal\Tests\tripal\Kernel\Entity\TripalEntityTokenFormatsTest::$modules = ['system', 'user', 'path', 'path_alias', 'field', 'datetime', 'tripal']
staticprotected

{}


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