You are here

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

File

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

Class

EntityReferenceBrowserTableWidgetTests

Namespace

Drupal\entity_browser_table\Kernel

Code

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