This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ abstract class AbstractEntity extends AbstractResource implements EntityInterfac
66
66
*
67
67
* @var array
68
68
*/
69
- protected $ attributesByScope = [];
69
+ private $ attributesByScope = [];
70
70
71
71
/**
72
72
* Two-dimensional array by table name and attribute name
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ public function testLoadAllAttributes()
78
78
$ attributeMock ->expects ($ this ->once ())->method ('setIsGlobal ' )->with (1 )->willReturnSelf ();
79
79
$ attributeMock ->expects ($ this ->once ())->method ('setEntityType ' )->with ($ this ->entityTypeMock )->willReturnSelf ();
80
80
$ attributeMock ->expects ($ this ->once ())->method ('setEntityTypeId ' )->with ($ entityTypeId )->willReturnSelf ();
81
- $ this ->entityMock ->expects ($ this ->once ())->method ('addAttributeByScope ' )->willReturnSelf ();
82
81
$ this ->attributeLoader ->loadAllAttributes ($ this ->entityMock , $ dataObject );
83
82
}
84
83
@@ -102,7 +101,6 @@ public function testLoadAllAttributesAttributeCodesPresentInDefaultAttributes()
102
101
->method ('getEntityAttributes ' )->willReturn ($ attributeCodes );
103
102
$ this ->entityMock ->expects ($ this ->once ())->method ('getDefaultAttributes ' )->willReturn ($ defaultAttributes );
104
103
$ this ->entityMock ->expects ($ this ->once ())->method ('unsetAttributes ' )->willReturnSelf ();
105
- $ this ->entityMock ->expects ($ this ->atLeastOnce ())->method ('addAttributeByScope ' )->willReturnSelf ();
106
104
$ this ->objectManagerMock ->expects ($ this ->never ())->method ('create ' );
107
105
$ this ->attributeLoader ->loadAllAttributes ($ this ->entityMock , $ dataObject );
108
106
}
You can’t perform that action at this time.
0 commit comments