Exemplo n.º 1
0
 /**
  * Tests if the building of Permissions is defered when requested.
  *
  */
 public function testGrantDefersBuild()
 {
     $target = new Permissions();
     $target->grant('testUser', PermissionsInterface::PERMISSION_ALL, false);
     $this->assertFalse($target->isGranted('testUser', PermissionsInterface::PERMISSION_ALL));
     $target->build();
     $this->assertTrue($target->isGranted('testUser', PermissionsInterface::PERMISSION_ALL));
 }