/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/testsuite/Magento/TestModuleOverrideConfig/MagentoDataFixtureBeforeTransaction/ReplaceFixtureTest.php
45 строк
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\TestModuleOverrideConfig\MagentoDataFixtureBeforeTransaction; use Magento\TestModuleOverrideConfig\AbstractOverridesTest; use Magento\TestModuleOverrideConfig\Model\FixtureCallStorage; /** * Class check that magentoDataFixturesBeforeTransaction can be replaced using override config * * @magentoAppIsolation enabled */ class ReplaceFixtureTest extends AbstractOverridesTest { /** @var FixtureCallStorage */ private $fixtureCallStorage; /** * @inheritdoc */ protected function setUp(): void { parent::setUp(); $this->fixtureCallStorage = $this->objectManager->get(FixtureCallStorage::class); } /** * Checks that fixture can be replaced in global node * * @magentoDataFixtureBeforeTransaction Magento/TestModuleOverrideConfig/_files/fixture2_first_module.php * * @return void */ public function testReplaceFixture(): void { $this->assertEquals(0, $this->fixtureCallStorage->getFixturesCount('fixture2_first_module.php')); $this->assertEquals(1, $this->fixtureCallStorage->getFixturesCount('fixture3_first_module.php')); } }