/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/api-functional/testsuite/Magento/TestModuleOverrideConfig/Inheritance/Skip/SkipTest.php
57 строк
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\Inheritance\Skip; use PHPUnit\Framework\Attributes\DataProvider; /** * Class checks that test method can be skipped using inherited from abstract class/interface override config * * phpcs:disable Generic.Classes.DuplicateClassName * * @magentoAppIsolation enabled */ class SkipTest extends SkipAbstractClass implements SkipInterface { /** * @return void */ public function testAbstractSkip(): void { $this->fail('This test should be skipped via override config in method node inherited from abstract class'); } /** * @return void */ public function testInterfaceSkip(): void { $this->fail('This test should be skipped via override config in method node inherited from interface'); } /** * @param string $message * @return void */ #[DataProvider('skipDataProvider')] public function testSkipDataSet(string $message): void { $this->fail($message); } /** * @return array */ public static function skipDataProvider(): array { return [ 'first_data_set' => ['This test should be skipped in data set node inherited from abstract class'], 'second_data_set' => ['This test should be skipped in data set node inherited from interface'], ]; } }