public function testShouldNotCallClosureWhenOnlyClassNameIsPassedOnlyReturnTrue()
{
$blockCalled = false;
$this->authority->allow('preview', 'all', function ($self, $object) use(&$blockCalled) {
return $blockCalled = true;
});
$this->assertTrue($this->authority->can('preview', 'Project'));
$this->assertFalse($blockCalled);
}