diff options
Diffstat (limited to 'tests/Wallabag/CoreBundle/Helper')
-rw-r--r-- | tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php index c63671c4..f394b947 100644 --- a/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php +++ b/tests/Wallabag/CoreBundle/Helper/ContentProxyTest.php | |||
@@ -221,12 +221,9 @@ class ContentProxyTest extends \PHPUnit_Framework_TestCase | |||
221 | ->method('tag'); | 221 | ->method('tag'); |
222 | 222 | ||
223 | $validator = $this->getValidator(); | 223 | $validator = $this->getValidator(); |
224 | $validator->expects($this->exactly(2)) | 224 | $validator->expects($this->once()) |
225 | ->method('validate') | 225 | ->method('validate') |
226 | ->will($this->onConsecutiveCalls( | 226 | ->willReturn(new ConstraintViolationList([new ConstraintViolation('oops', 'oops', [], 'oops', 'language', 'dontexist')])); |
227 | new ConstraintViolationList([new ConstraintViolation('oops', 'oops', [], 'oops', 'language', 'dontexist')]), | ||
228 | new ConstraintViolationList() | ||
229 | )); | ||
230 | 227 | ||
231 | $graby = $this->getMockBuilder('Graby\Graby') | 228 | $graby = $this->getMockBuilder('Graby\Graby') |
232 | ->setMethods(['fetchContent']) | 229 | ->setMethods(['fetchContent']) |