@@ -47,7 +47,7 @@ protected function setUp()
47
47
public function testGetCustomAttributesMetadata ()
48
48
{
49
49
$ customAttributesMetadata = $ this ->_service ->getCustomAttributesMetadata ();
50
- $ this ->assertCount (1 , $ customAttributesMetadata , "Invalid number of attributes returned. " );
50
+ $ this ->assertCount (0 , $ customAttributesMetadata , "Invalid number of attributes returned. " );
51
51
}
52
52
53
53
public function testGetNestedOptionsCustomAttributesMetadata ()
@@ -106,7 +106,7 @@ public function testGetCustomerAttributeMetadata()
106
106
'email ' => 'customer@example.com ' ,
107
107
'default_billing ' => '1 ' ,
108
108
'default_shipping ' => '1 ' ,
109
- 'disable_auto_group_change ' => ' 0 ' ,
109
+ 'disable_auto_group_change ' => 0 ,
110
110
];
111
111
112
112
$ customer = $ this ->customerRepository ->getById (1 );
@@ -144,10 +144,13 @@ public function testGetCustomerAttributeMetadata()
144
144
public function testGetCustomerAttributeMetadataNoSuchEntity ()
145
145
{
146
146
try {
147
- $ this ->_service ->getAttributeMetadata ('20 ' );
147
+ $ this ->_service ->getAttributeMetadata ('wrong_attribute_code ' );
148
148
$ this ->fail ('Expected exception not thrown. ' );
149
149
} catch (NoSuchEntityException $ e ) {
150
- $ this ->assertEquals ('No such entity with entityType = customer, attributeCode = 20 ' , $ e ->getMessage ());
150
+ $ this ->assertEquals (
151
+ 'No such entity with entityType = customer, attributeCode = wrong_attribute_code ' ,
152
+ $ e ->getMessage ()
153
+ );
151
154
}
152
155
}
153
156
0 commit comments