You are here

public function EntityFetchByFieldTest::testRefiningContextDefinitions in Rules 8.3

@covers ::refineContextDefinitions

File

tests/src/Unit/Integration/RulesAction/EntityFetchByFieldTest.php, line 168

Class

EntityFetchByFieldTest
@coversDefaultClass \Drupal\rules\Plugin\RulesAction\EntityFetchByField @group RulesAction

Namespace

Drupal\Tests\rules\Unit\Integration\RulesAction

Code

public function testRefiningContextDefinitions() {
  $this->action
    ->setContextValue('type', 'entity_test');
  $this->action
    ->refineContextDefinitions([]);
  $this
    ->assertEquals($this->action
    ->getProvidedContextDefinition('entity_fetched')
    ->getDataType(), 'entity:entity_test');
}