File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Catalog \Controller \Adminhtml ;
7
7
8
8
use Magento \Framework \App \Request \DataPersistorInterface ;
9
- use Magento \Framework \Data \Form \FormKey ;
10
9
use Magento \Framework \Message \Manager ;
11
- use Magento \TestFramework \Helper \Bootstrap ;
12
-
13
10
use Magento \Framework \App \Request \Http as HttpRequest ;
14
11
15
12
/**
@@ -183,6 +180,7 @@ public function testSaveActionWithAlreadyExistingUrlKey(array $postData)
183
180
$ messageManager = $ this ->_objectManager ->get (Manager::class);
184
181
$ messages = $ messageManager ->getMessages ();
185
182
$ errors = $ messages ->getItemsByType ('error ' );
183
+ $ this ->assertNotEmpty ($ errors );
186
184
$ message = array_shift ($ errors );
187
185
$ this ->assertSame ('URL key for specified store already exists. ' , $ message ->getText ());
188
186
$ this ->assertRedirect ($ this ->stringContains ('/backend/catalog/product/new ' ));
@@ -250,7 +248,6 @@ public function saveActionWithAlreadyExistingUrlKeyDataProvider()
250
248
'thumbnail ' => '/m/a//magento_image.jpg.tmp ' ,
251
249
'swatch_image ' => '/m/a//magento_image.jpg.tmp ' ,
252
250
],
253
- 'form_key ' => Bootstrap::getObjectManager ()->get (FormKey::class)->getFormKey (),
254
251
]
255
252
]
256
253
];
You can’t perform that action at this time.
0 commit comments