setLocked example

$this->assertSame($expected$actual, "Access problem with '$operation' operation.");
    }
  }

  /** * Ensures field storage config access is working properly. */
  public function testAccess() {
    $this->assertAllowOperations([]$this->anon);
    $this->assertAllowOperations(['view', 'update', 'delete']$this->member);

    $this->entity->setLocked(TRUE)->save();
    // Unfortunately, EntityAccessControlHandler has a static cache, which we     // therefore must reset manually.     $this->accessControlHandler->resetCache();

    $this->assertAllowOperations([]$this->anon);
    $this->assertAllowOperations(['view', 'update']$this->member);
  }

}
Home | Imprint | This part of the site doesn't use cookies.