Skip to content

Commit 5ea6e72

Browse files
committed
Changed way to get to clean up the conceptions.
1 parent 1e2f3fb commit 5ea6e72

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

dev/tests/integration/testsuite/Magento/SalesRule/Model/Observer/AssignCouponDataAfterOrderCustomerAssignTest.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* @magentoAppIsolation enabled
1818
*
1919
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20-
* @SuppressWarnings(PHPMD.StaticAccess)
2120
*/
2221
class AssignCouponDataAfterOrderCustomerAssignTest extends \PHPUnit\Framework\TestCase
2322
{
@@ -111,12 +110,10 @@ protected function setUp()
111110
*/
112111
protected function tearDown()
113112
{
114-
unset(
115-
$this->order,
116-
$this->coupon,
117-
$this->customer,
118-
$this->salesRule
119-
);
113+
$this->salesRule = null;
114+
$this->customer = null;
115+
$this->coupon = null;
116+
$this->order = null;
120117
}
121118

122119
/**

0 commit comments

Comments
 (0)