Skip to content

Commit 922221f

Browse files
committed
MAGETWO-57006: [Forwardport] Performance improvement on Catalog Fulltext indexer
1 parent 16ad361 commit 922221f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ public function testGetOptionWhenOptionsAreSet()
1919
false,
2020
true,
2121
[
22-
'getData', 'usesSource', 'getSource', 'convertToObjects'
22+
'_getData', 'usesSource', 'getSource', 'convertToObjects'
2323
]
2424
);
2525

2626
$model->expects($this->once())
27-
->method('getData')
27+
->method('_getData')
2828
->with(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute::OPTIONS)
2929
->willReturn(['options']);
3030
$model->expects($this->never())->method('usesSource');
@@ -46,12 +46,12 @@ public function testGetOptionWhenOptionsAreEmptyWithoutSource()
4646
false,
4747
true,
4848
[
49-
'getData', 'usesSource', 'getSource', 'convertToObjects'
49+
'_getData', 'usesSource', 'getSource', 'convertToObjects'
5050
]
5151
);
5252

5353
$model->expects($this->once())
54-
->method('getData')
54+
->method('_getData')
5555
->with(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute::OPTIONS)
5656
->willReturn([]);
5757
$model->expects($this->once())->method('usesSource')->willReturn(false);
@@ -74,12 +74,12 @@ public function testGetOptionWhenOptionsAreEmptyWithSource()
7474
false,
7575
true,
7676
[
77-
'getData', 'usesSource', 'getSource', 'convertToObjects', 'getAllOptions'
77+
'_getData', 'usesSource', 'getSource', 'convertToObjects', 'getAllOptions'
7878
]
7979
);
8080

8181
$model->expects($this->once())
82-
->method('getData')
82+
->method('_getData')
8383
->with(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute::OPTIONS)
8484
->willReturn([]);
8585
$model->expects($this->once())->method('usesSource')->willReturn(true);

0 commit comments

Comments
 (0)