Skip to content

Commit

Permalink
fix unit test for ordering of attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tansezer committed Aug 30, 2019
1 parent a047aca commit 952d12e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function testAddValueSortToCollection()
$attrOption->expects($this->once())->method('addOptionToCollection')
->with($collection, $this->abstractAttributeMock, $expr)
->willReturnSelf();
$select->expects($this->once())->method('order')->with("{$attributeCode} {$dir}");
$select->expects($this->once())->method('order')->with("{$attributeCode}_order {$dir}");

$this->assertEquals($this->model, $this->model->addValueSortToCollection($collection, $dir));
}
Expand Down

0 comments on commit 952d12e

Please sign in to comment.