-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
// create the inspection | ||
$inspection = Entity\PullRequestInspection::create($repository, $pullRequest); | ||
$inspection = Entity\PullRequestInspection::create($repository, $pullRequest, $number); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
Fixes #38