Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jul 18, 2024
1 parent eac0e79 commit b0437e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Model/Table/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public function testGet(): void {
$record = $this->Posts->get(2);
$this->assertEquals(2, $record['id']);

$record = $this->Posts->get(2, ['fields' => ['id', 'published']]);
$record = $this->Posts->get(2, ...['fields' => ['id', 'published']]);
$this->assertEquals(2, count($record->toArray()));

$record = $this->Posts->get(2, ['fields' => ['id', 'title', 'body', 'author_id', 'Authors.id'], 'contain' => ['Authors']]);
$record = $this->Posts->get(2, ...['fields' => ['id', 'title', 'body', 'author_id', 'Authors.id'], 'contain' => ['Authors']]);
$this->assertEquals(5, count($record->toArray()));
$this->assertEquals(3, $record->author['id']);
}
Expand Down

0 comments on commit b0437e0

Please sign in to comment.