Skip to content

Commit 952d12e

Browse files
committed
fix unit test for ordering of attribute
1 parent a047aca commit 952d12e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Source

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Source/TableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function testAddValueSortToCollection()
317317
$attrOption->expects($this->once())->method('addOptionToCollection')
318318
->with($collection, $this->abstractAttributeMock, $expr)
319319
->willReturnSelf();
320-
$select->expects($this->once())->method('order')->with("{$attributeCode} {$dir}");
320+
$select->expects($this->once())->method('order')->with("{$attributeCode}_order {$dir}");
321321

322322
$this->assertEquals($this->model, $this->model->addValueSortToCollection($collection, $dir));
323323
}

0 commit comments

Comments
 (0)