Skip to content
Snippets Groups Projects
Commit 27e1d24b authored by Ostap Smolyar's avatar Ostap Smolyar
Browse files

MTA-3952: Refactoring comments history block in Order module

parent 96d9e4ab
No related merge requests found
Showing
with 12 additions and 12 deletions
......@@ -70,9 +70,9 @@ class AssertTransactionIsPresentInSettlementReport extends AbstractConstraint
}
/**
* Get transaction id from order comments
* Get transaction id from order comments.
*
* @return mixed
* @return null|string
*/
private function getTransactionId()
{
......
......@@ -10,7 +10,7 @@ use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
/**
* Assert that accept payment message exist in Comments History section on order page in Admin.
* Assert that accept payment message exists in Comments History section on order page in Admin.
*
*/
class AssertAcceptPaymentMessageInCommentsHistory extends AbstractConstraint
......@@ -23,7 +23,7 @@ class AssertAcceptPaymentMessageInCommentsHistory extends AbstractConstraint
private static $message = 'Approved the payment online.';
/**
* Assert that accept payment message exist in Comments History section on order page in Admin.
* Assert that accept payment message exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $orderIndex
......
......@@ -21,7 +21,7 @@ class AssertAuthorizationInCommentsHistory extends AbstractConstraint
const AUTHORIZED_AMOUNT_PATTERN = '/(IPN "Pending" )*Authorized amount of \w*\W{1,2}%s. Transaction ID: "[\w\-]*"/';
/**
* Assert that comment about authorized amount exist in Comments History section on order page in Admin.
* Assert that comment about authorized amount exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $salesOrder
......
......@@ -22,7 +22,7 @@ class AssertCaptureInCommentsHistory extends AbstractConstraint
const CAPTURED_AMOUNT_PATTERN = '/^Captured amount of \w*\W{1,2}%s online. Transaction ID: "[\w\-]*"/';
/**
* Assert that comment about captured amount exist in Comments History section on order page in Admin.
* Assert that comment about captured amount exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $salesOrder
......
......@@ -10,7 +10,7 @@ use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
/**
* Assert that deny payment message exist in Comments History section on order page in Admin.
* Assert that deny payment message exists in Comments History section on order page in Admin.
*
* Constraint checks deny payment message in order comments history
*/
......@@ -24,7 +24,7 @@ class AssertDenyPaymentMessageInCommentsHistory extends AbstractConstraint
private static $message = 'Denied the payment online';
/**
* Assert that deny payment message exist in Comments History section on order page in Admin.
* Assert that deny payment message exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $orderIndex
......
......@@ -21,7 +21,7 @@ class AssertRefundInCommentsHistory extends AbstractConstraint
const REFUNDED_AMOUNT_PATTERN = '/^We refunded \w*\W{1,2}%s online. Transaction ID: "[\w\-]*"/';
/**
* Assert that comment about refunded amount exist in Comments History section on order page in Admin.
* Assert that comment about refunded amount exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $salesOrder
......
......@@ -11,12 +11,12 @@ use Magento\Mtf\Constraint\AbstractConstraint;
use Magento\Sales\Test\Fixture\OrderInjectable;
/**
* Assert that comment with correct order status exist in Comments History section on order page in Admin.
* Assert that comment with correct order status exists in Comments History section on order page in Admin.
*/
class AssertRefundOrderStatusInCommentsHistory extends AbstractConstraint
{
/**
* Assert that comment with correct order status exist in Comments History section on order page in Admin.
* Assert that comment with correct order status exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $salesOrder
......
......@@ -21,7 +21,7 @@ class AssertVoidInCommentsHistory extends AbstractConstraint
const VOIDED_AMOUNT = 'Voided authorization. Amount: $';
/**
* Assert that comment about voided amount exist in Comments History section on order page in Admin.
* Assert that comment about voided amount exists in Comments History section on order page in Admin.
*
* @param SalesOrderView $salesOrderView
* @param OrderIndex $salesOrder
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment