File tree 7 files changed +21
-7
lines changed
Backend/Controller/Adminhtml/System
Sales/Controller/Adminhtml/Order/Invoice
dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice 7 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ abstract class Design extends Action
14
14
*
15
15
* @see _isAllowed()
16
16
*/
17
- const ADMIN_RESOURCE = 'Magento_Backend::schedule ' ;
17
+ public const ADMIN_RESOURCE = 'Magento_Backend::schedule ' ;
18
18
19
19
/**
20
- * Core registry
20
+ * Core registry instance
21
21
*
22
22
* @var \Magento\Framework\Registry
23
23
*/
Original file line number Diff line number Diff line change 13
13
<service class =" Magento\Quote\Api\CartRepositoryInterface" method =" get" />
14
14
<resources >
15
15
<resource ref =" Magento_Cart::manage" />
16
- <resource ref =" Magento_Customer::customer" />
17
16
</resources >
18
17
</route >
19
18
<route url =" /V1/carts/search" method =" GET" >
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
8
8
9
- class Cancel extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View ;
11
+
12
+ class Cancel extends View implements HttpPostActionInterface
10
13
{
11
14
/**
12
15
* Authorization level of a basic admin session
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
8
8
9
- class Capture extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View ;
11
+
12
+ class Capture extends View implements HttpPostActionInterface
10
13
{
11
14
/**
12
15
* Authorization level of a basic admin session
Original file line number Diff line number Diff line change 18
18
use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View as AbstractView ;
19
19
20
20
/**
21
- * Class UpdateQty
21
+ * Class UpdateQty to update invoice items qty
22
+ *
22
23
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
23
24
*/
24
25
class UpdateQty extends AbstractView implements HttpPostActionInterface
Original file line number Diff line number Diff line change 6
6
*/
7
7
namespace Magento \Sales \Controller \Adminhtml \Order \Invoice ;
8
8
9
- class VoidAction extends \Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View
9
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
10
+ use Magento \Sales \Controller \Adminhtml \Invoice \AbstractInvoice \View ;
11
+
12
+ class VoidAction extends View implements HttpPostActionInterface
10
13
{
11
14
/**
12
15
* Authorization level of a basic admin session
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ class SaveTest extends AbstractInvoiceControllerTest
33
33
/** @var Item */
34
34
private $ orderItemResource ;
35
35
36
+ /**
37
+ * @var string
38
+ */
39
+ protected $ resource = "Magento_Sales::invoice " ;
40
+
36
41
/**
37
42
* @inheritdoc
38
43
*/
You can’t perform that action at this time.
0 commit comments