20 lines
585 B
PHP
20 lines
585 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace KupShop\DevelopmentBundle\Util\Tests;
|
|
|
|
trait OrderFromPStateToggleTrait
|
|
{
|
|
public function data_purchaseStateProvider(): \Generator
|
|
{
|
|
yield 'Test with module create_orders_from_purchase_state' => [function () {
|
|
$this->addModule(\Modules::ORDERS, \Modules::SUB_CREATE_ORDER_FROM_PURCHASE_STATE);
|
|
}];
|
|
|
|
yield 'Test without module create_orders_from_purchase_state' => [function () {
|
|
$this->removeModule(\Modules::ORDERS, \Modules::SUB_CREATE_ORDER_FROM_PURCHASE_STATE);
|
|
}];
|
|
}
|
|
}
|