getOrderSequence example

static::assertEquals(10, $extensionCriteria->getLimit());
        static::assertEquals(40, $extensionCriteria->getOffset());
    }

    public function testItIgnoresInvalidValuesForSortDirection(): void
    {
        $extensionCriteria = new ExtensionCriteria();

        $extensionCriteria->setOrderSequence('random');

        static::assertEquals(ExtensionCriteria::ORDER_SEQUENCE_ASC, $extensionCriteria->getOrderSequence());
    }

    public function testOrderSequenceDesc(): void
    {
        $extensionCriteria = new ExtensionCriteria();

        $extensionCriteria->setOrderSequence('DesC');

        static::assertEquals(ExtensionCriteria::ORDER_SEQUENCE_DESC, $extensionCriteria->getOrderSequence());
    }

    
Home | Imprint | This part of the site doesn't use cookies.