Skip to content

Commit 52a3eb1

Browse files
committed
MC-34231: 2.4.0-develop-pr33 PR stabilization
1 parent 7173fa4 commit 52a3eb1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AttributeTest extends \PHPUnit\Framework\TestCase
4141
/**
4242
* @inheritDoc
4343
*/
44-
protected function setUp()
44+
protected function setUp() : void
4545
{
4646
$this->objectManager = Bootstrap::getObjectManager();
4747
$this->model = $this->objectManager->get(Attribute::class);
@@ -69,13 +69,12 @@ 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(\Magento\Framework\Exception\LocalizedException::class);
77+
$this->expectExceptionMessage('Do not change entity type.');
7978
$attribute = $this->attributeRepository->get($this->customerEntityType, 'user_attribute');
8079
$attribute->setEntityTypeId(5);
8180
$attribute->save();

0 commit comments

Comments
 (0)