/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/framework/Magento/TestFramework/SkippableTrait.php
32 строки
687 B
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\TestFramework; use Magento\TestFramework\Workaround\Override\Config; /** * Trait for dynamic skip tests. * * Any class using this trait is required to implement Magento\TestFramework\SkippableInterface */ trait SkippableTrait { /** * Checks config and skip test before start. * * @before * @inheritdoc */ public function ___beforeTestRun(): void { $skipConfig = Config::getInstance()->getSkipConfiguration($this); if ($skipConfig['skip']) { self::markTestSkipped($skipConfig['skipMessage']); } } }