You are here

public function EntityReferenceBrowserTableWidgetTests::testGetEditButtonAccess__ReturnsTrue in Entity Browser - Table Layout 8

File

tests/src/Kernel/EntityReferenceBrowserTableWidgetTests.php, line 129

Class

EntityReferenceBrowserTableWidgetTests

Namespace

Drupal\entity_browser_table\Kernel

Code

public function testGetEditButtonAccess__ReturnsTrue() {
  $entity = $this
    ->createMock(Media::class);
  $entity
    ->method('access')
    ->withAnyParameters()
    ->willReturn(TRUE);
  $this->widget
    ->setSetting('field_widget_edit', TRUE);
  $this
    ->assertTrue($this->widget
    ->getEditButtonAccess($entity));
}