Пример #1
0
 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);
 }
Пример #2
0
 /**
  * @return GithubUserId
  */
 public function getOwnerUserId() : GithubUserId
 {
     return $this->owner->getGithubUserId();
 }