Skip to content

Commit

Permalink
Test for magento#24973.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Dec 3, 2019
1 parent c3804b7 commit 6c7f33b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ public function testAddAttributeToFilterAffectsGetSize(): void
*/
public function testAddAttributeTierPriceToFilter($condition): void
{
$this->collection->addAttributeToFilter('tier_price', $condition);
$this->assertEquals(1, $this->collection->getSize());
$size = $this->collection->addAttributeToFilter('tier_price', $condition)->getSize();
$this->assertEquals(1, $size);
}

/**
Expand All @@ -314,8 +314,8 @@ public function addAttributeTierPriceToFilterDataProvider(): array
*/
public function testAddAttributeIsSaleableToFilter($condition): void
{
$this->collection->addAttributeToFilter('is_saleable', $condition);
$this->assertEquals(1, $this->collection->getSize());
$size = $this->collection->addAttributeToFilter('is_saleable', $condition)->getSize();
$this->assertEquals(1, $size);
}

/**
Expand Down

0 comments on commit 6c7f33b

Please sign in to comment.