We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f81bd9e commit 34a16b0Copy full SHA for 34a16b0
dev/tests/functional/tests/app/Magento/Backend/Test/Block/Version.php
@@ -0,0 +1,28 @@
1
+<?php
2
+/**
3
+ * Copyright © 2016 Magento. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+namespace Magento\Backend\Test\Block;
8
9
+use Magento\Mtf\Block\Block;
10
+use Magento\Mtf\Client\Locator;
11
12
+class Version extends Block
13
+{
14
+ /**
15
+ * @var string
16
17
+ protected $backendVersion = 'magento-version';
18
19
20
+ * Returns dashboard application version
21
+ *
22
+ * @return string
23
24
+ public function getVersion()
25
+ {
26
+ return $this->_rootElement->find($this->backendVersion, Locator::SELECTOR_CLASS_NAME)->getText();
27
+ }
28
+}
0 commit comments