Skip to content

Commit

Permalink
Ignore undefined method error of repository tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Oct 3, 2023
1 parent 1881dae commit 13f4ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ parameters:
-
message: "#Parameter \\#4 \\$metadataFactory#"
path: "tests/Hydrators/Hydrators.php"
- # PHPStan doesn't recognize repository methods by TestCase in currrent config
message: "#Call to an undefined method Doctrine\\\\SkeletonMapper\\\\ObjectRepository\\\\ObjectRepositoryInterface<Doctrine\\\\Website\\\\Repositories#"
path: "tests/Repositories"
1 change: 1 addition & 0 deletions tests/Repositories/BlogPostRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Doctrine\Website\Tests\TestCase;
use InvalidArgumentException;

/** @covers BlogPostRepository */
class BlogPostRepositoryTest extends TestCase
{
public function testFindAll(): void
Expand Down

0 comments on commit 13f4ade

Please sign in to comment.