File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 99use Magento \Customer \Api \Data \AddressInterface ;
1010use Magento \Directory \Model \Region ;
1111use Magento \Framework \Exception \LocalizedException ;
12+ use Magento \Framework \ObjectManagerInterface ;
1213use Magento \TestFramework \Helper \Bootstrap ;
1314
1415/**
@@ -47,13 +48,10 @@ public static function anAddress(
4748 }
4849
4950 public static function aCompanyAddress (
50- ObjectManagerInterface $ objectManager = null ,
5151 string $ locale = 'de_DE ' ,
5252 string $ vatId = '1234567890 '
5353 ): AddressBuilder {
54- if ($ objectManager === null ) {
55- $ objectManager = Bootstrap::getObjectManager ();
56- }
54+ $ objectManager = Bootstrap::getObjectManager ();
5755
5856 $ address = self ::prepareFakeAddress ($ objectManager , $ locale );
5957 $ address ->setVatId ($ vatId );
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ public function testCompanyAddress(): void
176176 $ vatId = '1112223334 ' ;
177177 $ customerFixture = new CustomerFixture (
178178 CustomerBuilder::aCustomer ()->withAddresses (
179- AddressBuilder::aCompanyAddress (null , 'de_DE ' , $ vatId )->asDefaultBilling ()
179+ AddressBuilder::aCompanyAddress ('de_DE ' , $ vatId )->asDefaultBilling ()
180180 )->build ()
181181 );
182182
You can’t perform that action at this time.
0 commit comments