OrderCreatedByAdminRule example


class OrderCreatedByAdminRuleTest extends TestCase
{
    private OrderCreatedByAdminRule $rule;

    protected function setUp(): void
    {
        $this->rule = new OrderCreatedByAdminRule();
    }

    public function testGetName(): void
    {
        static::assertEquals('orderCreatedByAdmin', $this->rule->getName());
    }

    public function testRuleConfig(): void
    {
        $config = $this->rule->getConfig();
        static::assertEquals([
            
Home | Imprint | This part of the site doesn't use cookies.