@@ -24,7 +24,7 @@ public function testWrongFrontendInput()
24
24
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
25
25
$this->assertContains(
26
26
'catalog/product_attribute/edit/attribute_id/100500',
27
- $this->getResponse()->getHeader('Location')['value']
27
+ $this->getResponse()->getHeader('Location')->getFieldValue()
28
28
);
29
29
/** @var \Magento\Framework\Message\Collection $messages */
30
30
$messages = $this->_objectManager->create('Magento\Framework\Message\ManagerInterface')->getMessages();
@@ -49,7 +49,7 @@ public function testWithPopup()
49
49
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
50
50
$this->assertContains(
51
51
'catalog/product/addAttribute/attribute/5',
52
- $this->getResponse()->getHeader('Location')['value']
52
+ $this->getResponse()->getHeader('Location')->getFieldValue()
53
53
);
54
54
/** @var \Magento\Framework\Message\Collection $messages */
55
55
$messages = $this->_objectManager->create('Magento\Framework\Message\ManagerInterface')->getMessages();
@@ -69,7 +69,7 @@ public function testWithExceptionWhenSaveAttribute()
69
69
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
70
70
$this->assertContains(
71
71
'catalog/product_attribute/edit/attribute_id/0',
72
- $this->getResponse()->getHeader('Location')['value']
72
+ $this->getResponse()->getHeader('Location')->getFieldValue()
73
73
);
74
74
/** @var \Magento\Framework\Message\Collection $messages */
75
75
$messages = $this->_objectManager->create('Magento\Framework\Message\ManagerInterface')->getMessages();
@@ -87,7 +87,7 @@ public function testWrongAttributeId()
87
87
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
88
88
$this->assertContains(
89
89
'catalog/product_attribute/index',
90
- $this->getResponse()->getHeader('Location')['value']
90
+ $this->getResponse()->getHeader('Location')->getFieldValue()
91
91
);
92
92
/** @var \Magento\Framework\Message\Collection $messages */
93
93
$messages = $this->_objectManager->create('Magento\Framework\Message\ManagerInterface')->getMessages();
@@ -112,7 +112,7 @@ public function testAttributeWithoutId()
112
112
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
113
113
$this->assertContains(
114
114
'catalog/product_attribute/index',
115
- $this->getResponse()->getHeader('Location')['value']
115
+ $this->getResponse()->getHeader('Location')->getFieldValue()
116
116
);
117
117
/** @var \Magento\Framework\Message\Collection $messages */
118
118
$messages = $this->_objectManager->create('Magento\Framework\Message\ManagerInterface')->getMessages();
@@ -133,7 +133,7 @@ public function testWrongAttributeCode()
133
133
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
134
134
$this->assertContains(
135
135
'catalog/product_attribute/edit/attribute_id/2',
136
- $this->getResponse()->getHeader('Location')['value']
136
+ $this->getResponse()->getHeader('Location')->getFieldValue()
137
137
);
138
138
/** @var \Magento\Framework\Message\Collection $messages */
139
139
$messages = $this->_objectManager->create('Magento\Framework\Message\ManagerInterface')->getMessages();
@@ -158,7 +158,7 @@ public function testAttributeWithoutEntityTypeId()
158
158
$this->assertEquals(302, $this->getResponse()->getHttpResponseCode());
159
159
$this->assertContains(
160
160
'catalog/product_attribute/index',
161
- $this->getResponse()->getHeader('Location')['value']
161
+ $this->getResponse()->getHeader('Location')->getFieldValue()
162
162
);
163
163
}
164
164
0 commit comments