Skip to content

Commit

Permalink
Adds unit test for new method DbSelect::getArrayCopy()
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Brückner <dev@froschdesignstudio.de>
  • Loading branch information
froschdesign committed Jun 22, 2020
1 parent 8f228df commit 667493a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/Adapter/DbSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,21 @@ public function testReturnValueIsArray()
{
$this->assertInternalType('array', $this->dbSelect->getItems(0, 10));
}

public function testGetArrayCopyShouldContainSelectItems()
{
$this->dbSelect = new DbSelect(
$this->mockSelect,
$this->mockSql,
null,
$this->mockSelectCount
);
$this->assertSame(
[
'select',
'count_select',
],
array_keys($this->dbSelect->getArrayCopy())
);
}
}

0 comments on commit 667493a

Please sign in to comment.