Skip to content

Commit 2eb6c59

Browse files
author
Krishna Kumar
committed
Added the admin_store configuration Fixture
1 parent 8c92a5c commit 2eb6c59

File tree

4 files changed

+4
-61
lines changed

4 files changed

+4
-61
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/LoginAsCustomer/GenerateLoginCustomerTokenTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function setUp(): void
4242
* Verify with Admin email ID and Magento_LoginAsCustomer::login is enabled
4343
*
4444
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/admin.php
45-
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/login_as_customer_config_enable.php
45+
* @magentoConfigFixture admin_store login_as_customer/general/enabled 1
4646
* @magentoApiDataFixture Magento/Customer/_files/customer.php
4747
* @throws Exception
4848
*/
@@ -66,7 +66,7 @@ public function testGenerateCustomerValidTokenLoginAsCustomerEnabled()
6666
* Verify with Admin email ID and Magento_LoginAsCustomer::login is disabled
6767
*
6868
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/admin.php
69-
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/login_as_customer_config_disable.php
69+
* @magentoConfigFixture admin_store login_as_customer/general/enabled 0
7070
* @magentoApiDataFixture Magento/Customer/_files/customer.php
7171
* @throws Exception
7272
*/
@@ -90,7 +90,7 @@ public function testGenerateCustomerValidTokenLoginAsCustomerDisabled()
9090
* Verify with Customer Token in auth header
9191
*
9292
* @magentoApiDataFixture Magento/Customer/_files/customer.php
93-
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/login_as_customer_config_enable.php
93+
* @magentoConfigFixture admin_store login_as_customer/general/enabled 1
9494
* @throws Exception
9595
*/
9696
public function testGenerateCustomerTokenLoginWithCustomerCredentials()
@@ -115,7 +115,7 @@ public function testGenerateCustomerTokenLoginWithCustomerCredentials()
115115
* Test with invalid data.
116116
*
117117
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/admin.php
118-
* @magentoApiDataFixture Magento/LoginAsCustomer/_files/login_as_customer_config_enable.php
118+
* @magentoConfigFixture admin_store login_as_customer/general/enabled 1
119119
*
120120
* @dataProvider dataProviderInvalidInfo
121121
* @param string $adminUserName

dev/tests/integration/testsuite/Magento/LoginAsCustomer/_files/login_as_customer_config_disable.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

dev/tests/integration/testsuite/Magento/LoginAsCustomer/_files/login_as_customer_config_enable.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

dev/tests/integration/testsuite/Magento/LoginAsCustomer/_files/login_as_customer_config_enable_rollback.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)