Skip to content

Commit 2865274

Browse files
author
Grégoire Paris
committed
Remove useless call
You cannot throw and return.
1 parent 4b3d1ab commit 2865274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/DataProvider/ChainCollectionDataProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testGetCollection()
3333
$dummy2->setName('Parks');
3434

3535
$firstDataProvider = $this->prophesize(CollectionDataProviderInterface::class);
36-
$firstDataProvider->getCollection(Dummy::class, null)->willReturn([$dummy, $dummy2])->willThrow(ResourceClassNotSupportedException::class);
36+
$firstDataProvider->getCollection(Dummy::class, null)->willThrow(ResourceClassNotSupportedException::class);
3737

3838
$secondDataProvider = $this->prophesize(CollectionDataProviderInterface::class);
3939
$secondDataProvider->getCollection(Dummy::class, null)->willReturn([$dummy, $dummy2]);

0 commit comments

Comments
 (0)