Skip to content

Commit 3050d23

Browse files
Magentlytorhoehn
Magently
authored andcommitted
Fix integration test
Changed test method to fit the new implementation of the class method
1 parent e697698 commit 3050d23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/Db/Collection/AbstractCollectionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ public function addFieldToSelectDataProvider()
267267
/**
268268
* @dataProvider addExpressionFieldToSelectDataProvider
269269
*/
270-
public function testAddExpressionFieldToSelect($alias, $expression, $fields, $expected)
270+
public function testAddExpressionFieldToSelect($alias, $expression, $fields, $expectedFieldsToSelect)
271271
{
272-
$this->selectMock->expects($this->once())->method('columns')->with($expected);
273272
$this->assertTrue($this->uut->addExpressionFieldToSelect($alias, $expression, $fields) instanceof Uut);
273+
$this->assertEquals($expectedFieldsToSelect, $this->uut->getFieldsToSelect());
274+
$this->assertTrue($this->uut->wereFieldsToSelectChanged());
274275
}
275276

276277
/**

0 commit comments

Comments
 (0)