function LinkReplyTest::testRenderNullEntity
Test the render method when getEntity returns NULL.
@legacy-covers ::render
File
- 
              core/modules/ comment/ tests/ src/ Unit/ Plugin/ views/ field/ LinkReplyTest.php, line 46 
Class
Namespace
Drupal\Tests\comment\Unit\Plugin\views\fieldCode
public function testRenderNullEntity() : void {
  $row = new ResultRow();
  $field = new LinkReply([
    'entity_type' => 'foo',
    'entity field' => 'bar',
  ], '', [], $this->createMock(AccessManagerInterface::class), $this->createMock(EntityTypeManagerInterface::class), $this->createMock(EntityRepositoryInterface::class), $this->createMock(LanguageManagerInterface::class));
  $view = $this->createMock(ViewExecutable::class);
  $display = $this->createMock(DisplayPluginBase::class);
  $field->init($view, $display);
  $this->assertEmpty($field->render($row));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
