function EntityFetchByFieldTest::testRefiningContextDefinitions
@covers ::refineContextDefinitions
File
-
tests/
src/ Unit/ Integration/ RulesAction/ EntityFetchByFieldTest.php, line 171
Class
- EntityFetchByFieldTest
- @coversDefaultClass \Drupal\rules\Plugin\RulesAction\EntityFetchByField @group RulesAction
Namespace
Drupal\Tests\rules\Unit\Integration\RulesActionCode
public function testRefiningContextDefinitions() {
$this->action
->setContextValue('type', 'entity_test');
$this->action
->refineContextDefinitions([]);
$this->assertEquals($this->action
->getProvidedContextDefinition('entity_fetched')
->getDataType(), 'entity:entity_test');
}