File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
dev/tests/functional/tests/app/Magento/Sales/Test
Block/Adminhtml/Order/View/Tab/Info Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,13 @@ public function getComments()
65
65
$ result = [];
66
66
$ elements = $ this ->_rootElement ->getElements ($ this ->commentHistory );
67
67
foreach ($ elements as $ key => $ item ) {
68
- $ result [$ key ]['date ' ] = $ item ->find ($ this ->commentHistoryDate )->getText ();
69
- $ result [$ key ]['time ' ] = $ item ->find ($ this ->commentHistoryTime )->getText ();
70
- $ result [$ key ]['status ' ] = $ item ->find ($ this ->commentHistoryStatus )->getText ();
71
- $ result [$ key ]['is_customer_notified ' ] = $ item ->find ($ this ->commentHistoryNotifiedStatus )->getText ();
72
- $ result [$ key ]['comment ' ] = $ item ->find ($ this ->comment )->getText ();
68
+ $ result [$ key ] = [
69
+ 'date ' => $ item ->find ($ this ->commentHistoryDate )->getText (),
70
+ 'time ' => $ item ->find ($ this ->commentHistoryTime )->getText (),
71
+ 'status ' => $ item ->find ($ this ->commentHistoryStatus )->getText (),
72
+ 'is_customer_notified ' => $ item ->find ($ this ->commentHistoryNotifiedStatus )->getText (),
73
+ 'comment ' => $ item ->find ($ this ->comment )->getText ()
74
+ ];
73
75
}
74
76
75
77
return $ result ;
@@ -83,6 +85,6 @@ public function getComments()
83
85
public function getLatestComment ()
84
86
{
85
87
$ comments = $ this ->getComments ();
86
- return end ($ comments );
88
+ return current ($ comments );
87
89
}
88
90
}
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Sales \Test \Constraint ;
8
8
9
- use Magento \Sales \Test \Fixture \OrderInjectable ;
10
9
use Magento \Sales \Test \Page \Adminhtml \SalesOrderView ;
11
10
use Magento \Sales \Test \Page \Adminhtml \OrderIndex ;
12
11
use Magento \Mtf \Constraint \AbstractConstraint ;
You can’t perform that action at this time.
0 commit comments