Skip to content

Commit 27e1d24

Browse files
committed
MTA-3952: Refactoring comments history block in Order module
1 parent 96d9e4a commit 27e1d24

8 files changed

+12
-12
lines changed

dev/tests/functional/tests/app/Magento/Braintree/Test/Constraint/AssertTransactionIsPresentInSettlementReport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public function toString()
7070
}
7171

7272
/**
73-
* Get transaction id from order comments
73+
* Get transaction id from order comments.
7474
*
75-
* @return mixed
75+
* @return null|string
7676
*/
7777
private function getTransactionId()
7878
{

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertAcceptPaymentMessageInCommentsHistory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
1111

1212
/**
13-
* Assert that accept payment message exist in Comments History section on order page in Admin.
13+
* Assert that accept payment message exists in Comments History section on order page in Admin.
1414
*
1515
*/
1616
class AssertAcceptPaymentMessageInCommentsHistory extends AbstractConstraint
@@ -23,7 +23,7 @@ class AssertAcceptPaymentMessageInCommentsHistory extends AbstractConstraint
2323
private static $message = 'Approved the payment online.';
2424

2525
/**
26-
* Assert that accept payment message exist in Comments History section on order page in Admin.
26+
* Assert that accept payment message exists in Comments History section on order page in Admin.
2727
*
2828
* @param SalesOrderView $salesOrderView
2929
* @param OrderIndex $orderIndex

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertAuthorizationInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AssertAuthorizationInCommentsHistory extends AbstractConstraint
2121
const AUTHORIZED_AMOUNT_PATTERN = '/(IPN "Pending" )*Authorized amount of \w*\W{1,2}%s. Transaction ID: "[\w\-]*"/';
2222

2323
/**
24-
* Assert that comment about authorized amount exist in Comments History section on order page in Admin.
24+
* Assert that comment about authorized amount exists in Comments History section on order page in Admin.
2525
*
2626
* @param SalesOrderView $salesOrderView
2727
* @param OrderIndex $salesOrder

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCaptureInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AssertCaptureInCommentsHistory extends AbstractConstraint
2222
const CAPTURED_AMOUNT_PATTERN = '/^Captured amount of \w*\W{1,2}%s online. Transaction ID: "[\w\-]*"/';
2323

2424
/**
25-
* Assert that comment about captured amount exist in Comments History section on order page in Admin.
25+
* Assert that comment about captured amount exists in Comments History section on order page in Admin.
2626
*
2727
* @param SalesOrderView $salesOrderView
2828
* @param OrderIndex $salesOrder

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertDenyPaymentMessageInCommentsHistory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
1111

1212
/**
13-
* Assert that deny payment message exist in Comments History section on order page in Admin.
13+
* Assert that deny payment message exists in Comments History section on order page in Admin.
1414
*
1515
* Constraint checks deny payment message in order comments history
1616
*/
@@ -24,7 +24,7 @@ class AssertDenyPaymentMessageInCommentsHistory extends AbstractConstraint
2424
private static $message = 'Denied the payment online';
2525

2626
/**
27-
* Assert that deny payment message exist in Comments History section on order page in Admin.
27+
* Assert that deny payment message exists in Comments History section on order page in Admin.
2828
*
2929
* @param SalesOrderView $salesOrderView
3030
* @param OrderIndex $orderIndex

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AssertRefundInCommentsHistory extends AbstractConstraint
2121
const REFUNDED_AMOUNT_PATTERN = '/^We refunded \w*\W{1,2}%s online. Transaction ID: "[\w\-]*"/';
2222

2323
/**
24-
* Assert that comment about refunded amount exist in Comments History section on order page in Admin.
24+
* Assert that comment about refunded amount exists in Comments History section on order page in Admin.
2525
*
2626
* @param SalesOrderView $salesOrderView
2727
* @param OrderIndex $salesOrder

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundOrderStatusInCommentsHistory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
use Magento\Sales\Test\Fixture\OrderInjectable;
1212

1313
/**
14-
* Assert that comment with correct order status exist in Comments History section on order page in Admin.
14+
* Assert that comment with correct order status exists in Comments History section on order page in Admin.
1515
*/
1616
class AssertRefundOrderStatusInCommentsHistory extends AbstractConstraint
1717
{
1818
/**
19-
* Assert that comment with correct order status exist in Comments History section on order page in Admin.
19+
* Assert that comment with correct order status exists in Comments History section on order page in Admin.
2020
*
2121
* @param SalesOrderView $salesOrderView
2222
* @param OrderIndex $salesOrder

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertVoidInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AssertVoidInCommentsHistory extends AbstractConstraint
2121
const VOIDED_AMOUNT = 'Voided authorization. Amount: $';
2222

2323
/**
24-
* Assert that comment about voided amount exist in Comments History section on order page in Admin.
24+
* Assert that comment about voided amount exists in Comments History section on order page in Admin.
2525
*
2626
* @param SalesOrderView $salesOrderView
2727
* @param OrderIndex $salesOrder

0 commit comments

Comments
 (0)