@@ -1087,16 +1087,15 @@ public function testGetDataWithVisibleAttributesWithAccountEdit()
1087
1087
1088
1088
$ meta = $ dataProvider ->getMeta ();
1089
1089
$ this ->assertNotEmpty ($ meta );
1090
- $ this ->assertEquals ($ this ->getExpectationForVisibleAttributes (false ), $ meta );
1090
+ $ this ->assertEquals ($ this ->getExpectationForVisibleAttributes (), $ meta );
1091
1091
}
1092
1092
1093
1093
/**
1094
1094
* Retrieve all customer variations of attributes with all variations of visibility
1095
1095
*
1096
- * @param bool $isRegistration
1097
1096
* @return array
1098
1097
*/
1099
- private function getCustomerAttributeExpectations ($ isRegistration )
1098
+ private function getCustomerAttributeExpectations ()
1100
1099
{
1101
1100
return [
1102
1101
self ::ATTRIBUTE_CODE . "_1 " => [
@@ -1106,7 +1105,7 @@ private function getCustomerAttributeExpectations($isRegistration)
1106
1105
'dataType ' => 'frontend_input ' ,
1107
1106
'formElement ' => 'frontend_input ' ,
1108
1107
'options ' => 'test-options ' ,
1109
- 'visible ' => ! $ isRegistration ,
1108
+ 'visible ' => true ,
1110
1109
'required ' => 'is_required ' ,
1111
1110
'label ' => __ ('frontend_label ' ),
1112
1111
'sortOrder ' => 'sort_order ' ,
@@ -1143,7 +1142,7 @@ private function getCustomerAttributeExpectations($isRegistration)
1143
1142
'config ' => [
1144
1143
'dataType ' => 'frontend_input ' ,
1145
1144
'formElement ' => 'frontend_input ' ,
1146
- 'visible ' => $ isRegistration ,
1145
+ 'visible ' => true ,
1147
1146
'required ' => 'is_required ' ,
1148
1147
'label ' => __ ('frontend_label ' ),
1149
1148
'sortOrder ' => 'sort_order ' ,
@@ -1166,7 +1165,7 @@ private function getCustomerAttributeExpectations($isRegistration)
1166
1165
'config ' => [
1167
1166
'dataType ' => 'frontend_input ' ,
1168
1167
'formElement ' => 'frontend_input ' ,
1169
- 'visible ' => $ isRegistration ,
1168
+ 'visible ' => true ,
1170
1169
'required ' => 'is_required ' ,
1171
1170
'label ' => __ ('frontend_label ' ),
1172
1171
'sortOrder ' => 'sort_order ' ,
@@ -1189,14 +1188,13 @@ private function getCustomerAttributeExpectations($isRegistration)
1189
1188
/**
1190
1189
* Retrieve all variations of attributes with all variations of visibility
1191
1190
*
1192
- * @param bool $isRegistration
1193
1191
* @return array
1194
1192
*/
1195
- private function getExpectationForVisibleAttributes ($ isRegistration = true )
1193
+ private function getExpectationForVisibleAttributes ()
1196
1194
{
1197
1195
return [
1198
1196
'customer ' => [
1199
- 'children ' => $ this ->getCustomerAttributeExpectations ($ isRegistration ),
1197
+ 'children ' => $ this ->getCustomerAttributeExpectations (),
1200
1198
],
1201
1199
'address ' => [
1202
1200
'children ' => [
0 commit comments