/** * Tests that the status field is not editable. */ public function testStatusFieldIsNotEditable() { \Drupal::currentUser()->setAccount($this->user1); $this->assertFalse($this->file->get('status')->access('edit')); }