Skip to content

Commit 41270a6

Browse files
Copilotaddison74
andcommitted
Fix additional PHP CS Fixer errors in AddressTest.php
- Change $this->assertSame to self::assertSame (static call) - Add trailing commas after last parameter in all assertSame calls - Remove trailing whitespace after closing braces Co-authored-by: addison74 <[email protected]>
1 parent 8db9588 commit 41270a6

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/unit/Mage/Sales/Model/Quote/AddressTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public function testPreservesExplicitlySetSameAsBillingForGuestOrders(): void
5252
$method->invoke($address);
5353

5454
// Assert that the explicitly set value was preserved
55-
$this->assertSame(
55+
self::assertSame(
5656
0,
5757
$address->getSameAsBilling(),
58-
'Explicitly set same_as_billing=0 should be preserved for guest orders during order edit'
58+
'Explicitly set same_as_billing=0 should be preserved for guest orders during order edit',
5959
);
6060
}
61-
61+
6262
/**
6363
* Test that same_as_billing is set to default for new addresses without explicit value
6464
*
@@ -86,13 +86,13 @@ public function testSetsDefaultSameAsBillingForNewGuestAddressesWithoutExplicitV
8686
$method->invoke($address);
8787

8888
// For guest orders, default behavior should set same_as_billing to 1
89-
$this->assertSame(
89+
self::assertSame(
9090
1,
9191
$address->getSameAsBilling(),
92-
'Default same_as_billing=1 should be set for new guest shipping addresses without explicit value'
92+
'Default same_as_billing=1 should be set for new guest shipping addresses without explicit value',
9393
);
9494
}
95-
95+
9696
/**
9797
* Test that explicitly set same_as_billing=1 is preserved
9898
*
@@ -121,13 +121,13 @@ public function testPreservesExplicitlySetSameAsBillingTrue(): void
121121
$method->invoke($address);
122122

123123
// Assert that the explicitly set value was preserved
124-
$this->assertSame(
124+
self::assertSame(
125125
1,
126126
$address->getSameAsBilling(),
127-
'Explicitly set same_as_billing=1 should be preserved'
127+
'Explicitly set same_as_billing=1 should be preserved',
128128
);
129129
}
130-
130+
131131
/**
132132
* Test that the fix works for registered customers with different addresses
133133
*
@@ -155,10 +155,10 @@ public function testPreservesExplicitlySetSameAsBillingForRegisteredCustomers():
155155
$method->invoke($address);
156156

157157
// Assert that the explicitly set value was preserved
158-
$this->assertSame(
158+
self::assertSame(
159159
0,
160160
$address->getSameAsBilling(),
161-
'Explicitly set same_as_billing=0 should be preserved for registered customers'
161+
'Explicitly set same_as_billing=0 should be preserved for registered customers',
162162
);
163163
}
164164
}

0 commit comments

Comments
 (0)