/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/testsuite/Magento/Customer/Block/Account/AuthenticationPopupTest.php
59 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
<?php /** * Copyright 2020 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Customer\Block\Account; use Magento\Framework\ObjectManagerInterface; use Magento\Framework\View\LayoutInterface; use Magento\TestFramework\Helper\Bootstrap; use PHPUnit\Framework\TestCase; /** * Tests for authentication popup block. * * @see \Magento\Customer\Block\Account\AuthenticationPopup * @magentoAppArea frontend */ class AuthenticationPopupTest extends TestCase { /** @var ObjectManagerInterface */ private $objectManager; /** @var AuthenticationPopup */ private $block; /** * @inheritdoc */ protected function setUp(): void { parent::setUp(); $this->objectManager = Bootstrap::getObjectManager(); $this->block = $this->objectManager->get(LayoutInterface::class)->createBlock(AuthenticationPopup::class); } /** * @magentoConfigFixture current_store customer/password/autocomplete_on_storefront 1 * * @return void */ public function testAutocompletePasswordEnabled(): void { $this->assertEquals('on', $this->block->getConfig()['autocomplete']); } /** * @magentoConfigFixture current_store customer/password/autocomplete_on_storefront 0 * * @return void */ public function testAutocompletePasswordDisabled(): void { $this->assertEquals('off', $this->block->getConfig()['autocomplete']); } }