Skip to content

Commit f2750c7

Browse files
committed
Use createMock() rather than createStub()
The CI is not using a recent enough version of PHPUnit for that
1 parent d00f256 commit f2750c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected function createEntityManagerMock($repositoryMock)
114114
->method('hasField')
115115
->willReturn(true)
116116
;
117-
$refl = $this->createStub(\ReflectionProperty::class);
117+
$refl = $this->createMock(\ReflectionProperty::class);
118118
$refl
119119
->method('getValue')
120120
->willReturn(true)

0 commit comments

Comments
 (0)