ltsecurityinc安防产品在线商城代码
This commit is contained in:
+57
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Magento\Customer\Model\Checkout;
|
||||
|
||||
use Magento\Framework\ObjectManagerInterface;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Test for customer checkout config provider.
|
||||
*
|
||||
* @see \Magento\Customer\Model\Checkout\ConfigProvider
|
||||
*/
|
||||
class ConfigProviderTest extends TestCase
|
||||
{
|
||||
/** @var ObjectManagerInterface */
|
||||
private $objectManager;
|
||||
|
||||
/** @var ConfigProvider */
|
||||
private $configProvider;
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->objectManager = Bootstrap::getObjectManager();
|
||||
$this->configProvider = $this->objectManager->get(ConfigProvider::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoConfigFixture current_store customer/password/autocomplete_on_storefront 1
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testAutocompletePasswordEnabled(): void
|
||||
{
|
||||
$this->assertEquals('on', $this->configProvider->getConfig()['autocomplete']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoConfigFixture current_store customer/password/autocomplete_on_storefront 0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testAutocompletePasswordDisabled(): void
|
||||
{
|
||||
$this->assertEquals('off', $this->configProvider->getConfig()['autocomplete']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user