/** * @covers ::refineContextDefinitions */ public function testRefiningContextDefinitions() { $this->action->setContextValue('type', 'entity_test'); $this->action->refineContextdefinitions(); $this->assertEquals($this->action->getProvidedContextDefinition('entity_fetched')->getDataType(), 'entity:entity_test'); }