public function let(GithubRepoId $id, GithubRepoOwner $owner, GithubRepoName $name, GithubRepoFullName $fullName, GithubRepoGitUrl $gitUrl, GithubRepoSshUrl $sshUrl, GithubRepoPermissions $permissions, GithubRepoCreatedAt $githubCreatedAt, GithubRepoUpdatedAt $githubUpdatedAt, GithubRepoPushedAt $githubPushedAt, GithubUserId $ownerId) { $owner->getGithubUserId()->willReturn($ownerId); $permissions->isAdmin()->willReturn(false); $permissions->isPushAllowed()->willReturn(false); $permissions->isReadAllowed()->willReturn(false); $this->beConstructedWith($id, $owner, $name, $fullName, $htmlUrl = 'http://...', $description = 'Library description', $fork = false, $defaultBranchName = 'master', $githubPrivate = false, $gitUrl, $sshUrl, $permissions, $githubCreatedAt, $githubUpdatedAt, $githubPushedAt); }
/** * @return bool */ public function isPushAllowed() : bool { return $this->permissions->isPushAllowed(); }