diff --git a/tests/php/Repository/BookingCodesTest.php b/tests/php/Repository/BookingCodesTest.php index 233f9c0ad..1ece9ee88 100644 --- a/tests/php/Repository/BookingCodesTest.php +++ b/tests/php/Repository/BookingCodesTest.php @@ -162,7 +162,7 @@ public function testGetCodes() { BookingCodes::generate( $this->timeframeWithoutEndDate, self::ADVANCE_GENERATION_DAYS ); //now we should get all codes for the max generation days $codeAmount = BookingCodes::ADVANCE_GENERATION_DAYS + 2; // (timeframe begins yesterday): yesterday + today + ADVANCE_GENERATION_DAYS - $codes = BookingCodes::getCodes( $this->timeframeWithoutEndDate->ID, self::ADVANCE_GENERATION_DAYS); + $codes = BookingCodes::getCodes( $this->timeframeWithoutEndDate->ID ); $this->assertNotEmpty( $codes ); $this->assertCount( $codeAmount, $codes ); //check that the codes are in the correct order