Skip to content

Commit

Permalink
fix: phpunit errors caused by renaming arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Sep 16, 2023
1 parent 97bd497 commit b37fbd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Entity/Collection/EntityCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testEntityCollection()
{
$raw_data = json_decode(file_get_contents(__DIR__ . '/../../fixtures/comment-collection.json'), null, 512, JSON_THROW_ON_ERROR);
$collection = $this->getMockForAbstractClass(EntityCollection::class, [
'data' => $raw_data,
'rawData' => $raw_data,
]);

$collection->method('getListItemClass')
Expand Down
2 changes: 1 addition & 1 deletion tests/Entity/EntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class EntityTest extends TestCase
public function testEntity()
{
$entity = $this->getMockForAbstractClass(Entity::class, [
'raw_data' => (object) ['test' => 1],
'rawData' => (object) ['test' => 1],
]);
$entity->method('getIdField')
->willReturn('test');
Expand Down

0 comments on commit b37fbd9

Please sign in to comment.