Skip to content

Commit f13e4cb

Browse files
author
Stanislav Idolov
committed
MAGETWO-87346: Uncaught 'undefined property' notices in REST tests - backport for 2.1-develop
1 parent 689f414 commit f13e4cb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementCustomAttributesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function tearDown()
103103
$this->assertTrue($response);
104104
}
105105
}
106-
unset($this->accountManagement);
106+
$this->accountManagement = null;
107107
$mediaDirectory = $this->fileSystem->getDirectoryWrite(DirectoryList::MEDIA);
108108
$mediaDirectory->delete(CustomerMetadataInterface::ENTITY_TYPE_CUSTOMER);
109109
}

dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementMeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function setUp()
9494
*/
9595
public function tearDown()
9696
{
97-
unset($this->customerRepository);
97+
$this->customerRepository = null;
9898

9999
/** @var \Magento\Framework\Registry $registry */
100100
$registry = Bootstrap::getObjectManager()->get('Magento\Framework\Registry');

dev/tests/api-functional/testsuite/Magento/Customer/Api/AccountManagementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ public function tearDown()
150150
$this->configValue
151151
);
152152
$this->config->save();
153-
unset($this->accountManagement);
154-
unset($this->subscriber);
153+
$this->accountManagement = null;
154+
$this->subscriber = null;
155155
}
156156

157157
private function initSubscriber()

dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function tearDown()
139139
$this->assertTrue($response);
140140
}
141141
}
142-
unset($this->customerRepository);
142+
$this->customerRepository = null;
143143
}
144144

145145
/**

dev/tests/api-functional/testsuite/Magento/Integration/Model/IntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function setUp()
3232

3333
protected function tearDown()
3434
{
35-
unset($this->integration);
35+
$this->integration = null;
3636
OauthHelper::clearApiAccessCredentials();
3737
parent::tearDown();
3838
}

0 commit comments

Comments
 (0)