Skip to content

Commit 95c3579

Browse files
committed
MAGETWO-95977: Magento 2.3.0-beta18: ReflectionException on Backend -> Stores -> Configuration -> Services -> OAuth page
1 parent 5a4cc2d commit 95c3579

File tree

2 files changed

+26
-1
lines changed
  • app/code/Magento/Integration/etc/adminhtml
  • dev/tests/integration/testsuite/Magento/Integration/Block/Adminhtml/System/Config

2 files changed

+26
-1
lines changed

app/code/Magento/Integration/etc/adminhtml/system.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<label>Maximum Login Failures to Lock Out Account</label>
5555
<comment>Maximum Number of authentication failures to lock out account.</comment>
5656
</field>
57-
<field id="timeout" translate="label" type="text comment" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
57+
<field id="timeout" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
5858
<label>Lockout Time (seconds)</label>
5959
<comment>Period of time in seconds after which account will be unlocked.</comment>
6060
</field>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
9+
namespace Magento\Integration\Block\Adminhtml\System\Config;
10+
11+
class OauthSectionTest extends \Magento\TestFramework\TestCase\AbstractBackendController
12+
{
13+
/**
14+
* Checks that OAuth Section in the system config is loaded
15+
*/
16+
public function testOAuthSection()
17+
{
18+
$this->dispatch('backend/admin/system_config/edit/section/oauth/');
19+
$body = $this->getResponse()->getBody();
20+
$this->assertContains('id="oauth_access_token_lifetime-head"', $body);
21+
$this->assertContains('id="oauth_cleanup-head"', $body);
22+
$this->assertContains('id="oauth_consumer-head"', $body);
23+
$this->assertContains('id="oauth_authentication_lock-head"', $body);
24+
}
25+
}

0 commit comments

Comments
 (0)