Skip to content

Commit d892b6f

Browse files
committed
add test
1 parent 0ffdc22 commit d892b6f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/Rules/Doctrine/NoDocumentMockingRule/NoDocumentMockingRuleTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PHPStan\Rules\Rule;
1010
use PHPStan\Testing\RuleTestCase;
1111
use PHPUnit\Framework\Attributes\DataProvider;
12+
use Symplify\PHPStanRules\Rules\Doctrine\NoDocumentMockingRule;
1213
use Symplify\PHPStanRules\Rules\Doctrine\NoGetRepositoryOnServiceRepositoryEntityRule;
1314
use Symplify\PHPStanRules\Tests\Rules\Doctrine\NoGetRepositoryOnServiceRepositoryEntityRule\Source\Repository\SomeServiceRepository;
1415

@@ -39,8 +40,6 @@ public static function provideData(): Iterator
3940

4041
protected function getRule(): Rule
4142
{
42-
$reflectionProvider = self::getContainer()->getByType(ReflectionProvider::class);
43-
44-
return new NoGetRepositoryOnServiceRepositoryEntityRule($reflectionProvider);
43+
return new NoDocumentMockingRule();
4544
}
4645
}

0 commit comments

Comments
 (0)