Skip to content

Commit b37fbd9

Browse files
committed
fix: phpunit errors caused by renaming arguments
1 parent 97bd497 commit b37fbd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Entity/Collection/EntityCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testEntityCollection()
2222
{
2323
$raw_data = json_decode(file_get_contents(__DIR__ . '/../../fixtures/comment-collection.json'), null, 512, JSON_THROW_ON_ERROR);
2424
$collection = $this->getMockForAbstractClass(EntityCollection::class, [
25-
'data' => $raw_data,
25+
'rawData' => $raw_data,
2626
]);
2727

2828
$collection->method('getListItemClass')

tests/Entity/EntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class EntityTest extends TestCase
1818
public function testEntity()
1919
{
2020
$entity = $this->getMockForAbstractClass(Entity::class, [
21-
'raw_data' => (object) ['test' => 1],
21+
'rawData' => (object) ['test' => 1],
2222
]);
2323
$entity->method('getIdField')
2424
->willReturn('test');

0 commit comments

Comments
 (0)