Skip to content

Commit 4f9be0e

Browse files
MC-29566: [2.4.x] Deprecate SID query parameter-related methods
1 parent 16497a0 commit 4f9be0e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

dev/tests/integration/testsuite/Magento/Customer/Model/AttributeTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ public function testCRUD(): void
6969
/**
7070
* @magentoDataFixture Magento/Customer/_files/attribute_user_defined_customer.php
7171
*
72-
* @expectedException \Magento\Framework\Exception\LocalizedException
73-
* @expectedExceptionMessage Do not change entity type.
74-
*
7572
* @return void
7673
*/
7774
public function testAttributeSaveWithChangedEntityType(): void
7875
{
76+
$this->expectException(
77+
\Magento\Framework\Exception\LocalizedException::class
78+
);
79+
$this->expectExceptionMessage('Do not change entity type.');
80+
7981
$attribute = $this->attributeRepository->get($this->customerEntityType, 'user_attribute');
8082
$attribute->setEntityTypeId(5);
8183
$attribute->save();

dev/tests/integration/testsuite/Magento/Customer/Model/Metadata/Form/ImageTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,16 @@ public function testProcessCustomerValue()
157157
* Test for processCustomerValue method with invalid value
158158
*
159159
* @magentoAppIsolation enabled
160-
* @expectedException \Magento\Framework\Exception\ValidatorException
160+
*
161161
* @throws FileSystemException
162162
* @throws \ReflectionException
163163
*/
164164
public function testProcessCustomerInvalidValue()
165165
{
166+
$this->expectException(
167+
\Magento\Framework\Exception\ValidatorException::class
168+
);
169+
166170
$this->mediaDirectory->delete('customer');
167171
$this->mediaDirectory->create($this->mediaDirectory->getRelativePath('customer/tmp/'));
168172
$tmpFilePath = $this->mediaDirectory->getAbsolutePath('customer/tmp/' . $this->fileName);

0 commit comments

Comments
 (0)