/** @test */
 final function it_can_work_with_roles()
 {
     $this->manager->setRole('user');
     $this->manager->setRole(['editor', 'admin'], 'user');
     $this->getRoleLock('user')->allow('create', 'pages');
     $this->getRoleLock('editor')->allow('publish', 'pages');
     $this->getRoleLock('admin')->allow(['delete', 'publish'], 'pages');
     $lock = $this->getCallerLock();
     $this->assertTrue($lock->can(['create', 'publish'], 'pages'));
     $this->assertFalse($lock->can('delete', 'pages'));
     // If we deny the user from publishing anything afterwards, our role permissions are invalid.
     $lock->deny('publish');
     $this->assertFalse($lock->can(['create', 'publish'], 'pages'));
 }