Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Inspection number #60

Merged
merged 7 commits into from
Dec 2, 2017
Merged

Inspection number #60

merged 7 commits into from
Dec 2, 2017

Conversation

K-Phoen
Copy link
Owner

@K-Phoen K-Phoen commented Dec 2, 2017

Fixes #38

// create the inspection
$inspection = Entity\PullRequestInspection::create($repository, $pullRequest);
$inspection = Entity\PullRequestInspection::create($repository, $pullRequest, $number);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpmd]

Avoid using static access to class '\Regis\GithubContext\Domain\Entity\PullRequestInspection' in method 'handle'.

@@ -48,4 +48,17 @@ public function find(string $id): Entity\PullRequestInspection

return $inspection;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpstan]

Method Regis\GithubContext\Infrastructure\Repository\DoctrinePullRequestInspections::find() should return Regis\GithubContext\Domain\Entity\PullRequestInspection but returns object.

@@ -41,7 +41,7 @@ public function setUp()

public function testItHasAType()
{
$inspection = PullRequestInspection::create($this->repository, $this->pullRequest);
$inspection = PullRequestInspection::create($this->repository, $this->pullRequest, 4);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpmd]

Avoid using static access to class '\Regis\GithubContext\Domain\Entity\PullRequestInspection' in method 'testItHasAType'.

@@ -50,14 +50,14 @@ public function testItExposesThePrNumber()
{
$this->pullRequest->method('getNumber')->willReturn(42);

$inspection = PullRequestInspection::create($this->repository, $this->pullRequest);
$inspection = PullRequestInspection::create($this->repository, $this->pullRequest, 4);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpmd]

Avoid using static access to class '\Regis\GithubContext\Domain\Entity\PullRequestInspection' in method 'testItExposesThePrNumber'.


$this->assertSame(42, $inspection->getPullRequestNumber());
}

public function testItIsInitializedCorrectly()
{
$inspection = PullRequestInspection::create($this->repository, $this->pullRequest);
$inspection = PullRequestInspection::create($this->repository, $this->pullRequest, 4);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpmd]

Avoid using static access to class '\Regis\GithubContext\Domain\Entity\PullRequestInspection' in method 'testItIsInitializedCorrectly'.

@@ -48,4 +48,17 @@ public function find(string $id): Entity\PullRequestInspection

return $inspection;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpstan]

Method Regis\BitbucketContext\Infrastructure\Repository\DoctrinePullRequestInspections::find() should return Regis\BitbucketContext\Domain\Entity\PullRequestInspection but returns object.

@K-Phoen K-Phoen merged commit 769302a into master Dec 2, 2017
@K-Phoen K-Phoen deleted the inspection-number branch December 2, 2017 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant