File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
dev/tests/functional/tests/app/Magento/Install/Test/Block Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ class Install extends Block
26
26
*
27
27
* @var string
28
28
*/
29
- protected $ adminInfo = " //*[@id=' admin-info'] " ;
29
+ protected $ adminInfo = ' # admin-info ' ;
30
30
31
31
/**
32
32
* Database info block.
33
33
*
34
34
* @var string
35
35
*/
36
- protected $ dbInfo = " //*[@id=' db-info'] " ;
36
+ protected $ dbInfo = ' # db-info ' ;
37
37
38
38
/**
39
39
* 'Launch Magento Admin' button.
@@ -56,24 +56,31 @@ public function clickInstallNow()
56
56
/**
57
57
* Get admin info.
58
58
*
59
- * @return string
59
+ * @return array
60
60
*/
61
61
public function getAdminInfo ()
62
62
{
63
- return $ this ->getTableDataByCssLocator (' #admin-info ' );
63
+ return $ this ->getTableDataByCssLocator ($ this -> adminInfo );
64
64
}
65
65
66
66
/**
67
67
* Get database info.
68
68
*
69
- * @return string
69
+ * @return array
70
70
*/
71
71
public function getDbInfo ()
72
72
{
73
- return $ this ->getTableDataByCssLocator (' #db-info ' );
73
+ return $ this ->getTableDataByCssLocator ($ this -> dbInfo );
74
74
}
75
75
76
- private function getTableDataByCssLocator ($ locator )
76
+ /**
77
+ * Get table data by correspondent div css locator.
78
+ * Data inside the table must be presented via <dt>/<dd>/<dl> tags due to actual HTML5 standard.
79
+ *
80
+ * @param string $locator
81
+ * @return array
82
+ */
83
+ protected function getTableDataByCssLocator ($ locator )
77
84
{
78
85
$ data = [];
79
86
$ keys = [];
You can’t perform that action at this time.
0 commit comments