File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/Catalog/Model/Product
dev/tests/integration/testsuite/Magento/Catalog/Model/Product Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ public function authorizeSavingOf(ProductInterface $product): void
159
159
if (!$ savedProduct ->getSku ()) {
160
160
throw NoSuchEntityException::singleField ('id ' , $ product ->getId ());
161
161
}
162
- $ oldData = $ product -> getOrigData ();
162
+ $ oldData = $ savedProduct -> getData ();
163
163
}
164
164
}
165
165
if ($ this ->hasProductChanged ($ product , $ oldData )) {
Original file line number Diff line number Diff line change 19
19
20
20
/**
21
21
* Verify additional authorization for product operations
22
+ *
23
+ * @magentoAppArea adminhtml
22
24
*/
23
25
class AuthorizationTest extends TestCase
24
26
{
@@ -43,7 +45,7 @@ class AuthorizationTest extends TestCase
43
45
private $ productRepository ;
44
46
45
47
/**
46
- * @inheridoc
48
+ * @inheritdoc
47
49
*/
48
50
protected function setUp (): void
49
51
{
@@ -103,7 +105,7 @@ public function postRequestData(): array
103
105
'custom_design_to ' => '1 ' ,
104
106
'custom_layout_update_file ' => '1 ' ,
105
107
],
106
- ]
108
+ ],
107
109
],
108
110
[
109
111
[
@@ -118,7 +120,7 @@ public function postRequestData(): array
118
120
'custom_layout_update_file ' => '__no_update__ ' ,
119
121
],
120
122
'use_default ' => null ,
121
- ]
123
+ ],
122
124
],
123
125
];
124
126
}
@@ -130,7 +132,6 @@ public function postRequestData(): array
130
132
* @param array $data
131
133
*
132
134
* @dataProvider postRequestDataException
133
- * @throws AuthorizationException
134
135
*/
135
136
public function testAuthorizedSavingOfWithException (array $ data ): void
136
137
{
You can’t perform that action at this time.
0 commit comments