Skip to content

Commit b4521fb

Browse files
committed
MAGETWO-56197: Write functional test for MAGETWO-47822
- fixing code styles.
1 parent 16cd4fd commit b4521fb

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

dev/tests/functional/tests/app/Magento/Config/Test/Constraint/AssertAdminAccountSharing.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
26

37
namespace Magento\Config\Test\Constraint;
48

@@ -31,4 +35,4 @@ public function toString()
3135
{
3236
return 'Admin account sharing is available is present in in Stores>Configuration>advanced>admin grid.';
3337
}
34-
}
38+
}

dev/tests/functional/tests/app/Magento/Config/Test/TestCase/VerifyAdminAccountSharingEntityTest.php

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@
1212
/**
1313
* Steps:
1414
* 1. Log in to Admin.
15-
* 2. Open the Email Templates page.
16-
* 3. Click the "Add New Template" button.
17-
* 4. Select Email Template.
18-
* 5. Click the "Load Template" button.
19-
* 6. Enter Email Template name.
20-
* 7. Verify the email template saved successfully.
15+
* 2. Go to Stores>Configuration>Advanced>admin>Security.
16+
* 3. * 7. Verify admin Acoount Sharing option availability.
2117
*
22-
* @group Email_(PS)
23-
* @ZephyrId MAGETWO-17155
18+
* @group Config_(PS)
19+
* @ZephyrId MAGETWO-47822
2420
*/
2521
class VerifyAdminAccountSharingEntityTest extends Injectable
2622
{
@@ -31,22 +27,19 @@ class VerifyAdminAccountSharingEntityTest extends Injectable
3127
/* end tags */
3228

3329
/**
34-
* Email Template Index page.
30+
* Admin account settings page.
3531
*
36-
* @var AdminAccountSharing
32+
* @var adminAccountSharing
3733
*/
3834
private $adminAccountSharing;
3935

4036
/**
41-
* Inject synonym pages.
42-
*
43-
* @param $AdminAccountSharing $AdminAccountSharing
44-
* @return void
37+
* @param AdminAccountSharing $adminAccountSharing
4538
*/
4639
public function __inject(
47-
AdminAccountSharing $AdminAccountSharing
40+
AdminAccountSharing $adminAccountSharing
4841
) {
49-
$this->adminAccountSharing = $AdminAccountSharing;
42+
$this->adminAccountSharing = $adminAccountSharing;
5043
}
5144

5245
/**
@@ -57,6 +50,6 @@ public function __inject(
5750
public function test()
5851
{
5952
$this->adminAccountSharing->open();
60-
53+
sleep(10);
6154
}
6255
}

dev/tests/functional/tests/app/Magento/Config/Test/TestCase/VerifyAdminAccountSharingEntityTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
<constraint name="Magento\Config\Test\Constraint\AssertAdminAccountSharing" />
1212
</variation>
1313
</testCase>
14-
</config>
14+
</config>

0 commit comments

Comments
 (0)