function ContextMapperTest::testGetContextValuesEntityContext
@covers ::getContextValues
      
    
File
- 
              tests/
src/ Unit/ ContextMapperTest.php, line 93  
Class
- ContextMapperTest
 - @coversDefaultClass \Drupal\ctools\ContextMapper[[api-linebreak]]
 
Namespace
Drupal\Tests\ctools\UnitCode
public function testGetContextValuesEntityContext() {
  $input = [
    'foo' => [
      'label' => 'Foo',
      'description' => NULL,
      'type' => 'entity:node',
      'value' => 'the_node_uuid',
    ],
  ];
  $expected = new EntityLazyLoadContext(new EntityContextDefinition('entity:node', 'Foo'), $this->entityRepository
    ->reveal(), 'the_node_uuid');
  $actual = $this->staticContext
    ->getContextValues($input)['foo'];
  $this->assertEquals($expected, $actual);
}