protected function assertCan($action, $resource, $resourceValue = null, $authority = null) { $authority = $authority ?: $this->authority; $this->assertTrue($authority->can($action, $resource, $resourceValue)); }