comparison core/modules/field/tests/src/Unit/FieldConfigAccessControlHandlerTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
19 */ 19 */
20 protected function setUp() { 20 protected function setUp() {
21 parent::setUp(); 21 parent::setUp();
22 22
23 $this->entity = new FieldConfig([ 23 $this->entity = new FieldConfig([
24 'field_name' => $this->fieldStorage->getName(), 24 'field_name' => $this->entity->getName(),
25 'entity_type' => 'node', 25 'entity_type' => 'node',
26 'fieldStorage' => $this->fieldStorage, 26 'fieldStorage' => $this->entity,
27 'bundle' => 'test_bundle', 27 'bundle' => 'test_bundle',
28 'field_type' => 'test_field', 28 'field_type' => 'test_field',
29 ], 'node'); 29 ], 'node');
30 30
31 $this->accessControlHandler = new FieldConfigAccessControlHandler($this->entity->getEntityType()); 31 $this->accessControlHandler = new FieldConfigAccessControlHandler($this->entity->getEntityType());