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

Public Member Functions

 testTripalEntitySaveTitleUrlBasic (int $current_scenario_key, string $current_scenario_label)
 

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__ . '/TripalEntityFieldTest-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 Class.

@group TripalEntity @group TripalTokenParser

Member Function Documentation

◆ provideScenarios()

static Drupal\Tests\tripal\Kernel\Entity\TripalEntityFieldTest::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\TripalEntityFieldTest::setUp ( )
protected

◆ testTripalEntitySaveTitleUrlBasic()

Drupal\Tests\tripal\Kernel\Entity\TripalEntityFieldTest::testTripalEntitySaveTitleUrlBasic ( int  $current_scenario_key,
string  $current_scenario_label 
)

Tests that TripalEntity::save() handles URL alias' with substitutions.

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\TripalEntityFieldTest::$modules = ['system', 'user', 'path', 'path_alias', 'field', 'datetime', 'tripal']
staticprotected

{}


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