/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/api-functional/testsuite/Magento/TestModuleOverrideConfig/Skip/SkipDataSetTest.php
43 строки
1 KB
Raj Mohan R
AC-16236::Upgrade Core Test Framework to PHPUnit 12 and Migrate from PHPUnit 10
11 фев 2026, 13:51
11 фев 2026, 13:51
152ed41
Код
Авторство
О чём код?
<?php /** * Copyright 2020 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\TestModuleOverrideConfig\Skip; use Magento\TestModuleOverrideConfig\AbstractOverridesTest; use PHPUnit\Framework\Attributes\DataProvider; /** * Class checks that only specific data set can be skipped using override config * * @magentoAppIsolation enabled */ class SkipDataSetTest extends AbstractOverridesTest { /** * The first_data_set should not be executed according to override config it should be mark as skipped * * @return void */ #[DataProvider('testDataProvider')] public function testSkipDataSet(): void { if ($this->dataName() === 'first_data_set') { $this->fail('This test should be skipped via override config in data set node'); } } /** * @return array */ public static function testDataProvider(): array { return [ 'first_data_set' => [], 'second_data_set' => [], ]; } }