Release 2.29 (#5325)
* bump composer packages * fixes #5329 quotes for ANSI_MODE * improve year selection * improve year selection via dropdown * added range selector in month-picker * fix week number if week starts with sunday * fix first day of month in URL * predefined options for week chooser * z-index issue with sticky table header * replace duplicated translations * add logout button to allow user switch without having to re-login in "remember me" login * new flag to detect if invoice entry is a fixed rate * improve export column lengths
This commit is contained in:
@@ -32,13 +32,12 @@ class CustomerControllerTest extends APIControllerBaseTestCase
|
||||
{
|
||||
use RateControllerTestTrait;
|
||||
|
||||
/**
|
||||
* @param CustomerRate $rate
|
||||
* @param bool $isCollection
|
||||
* @return string
|
||||
*/
|
||||
protected function getRateUrlByRate(RateInterface $rate, bool $isCollection): string
|
||||
{
|
||||
self::assertInstanceOf(CustomerRate::class, $rate);
|
||||
self::assertNotNull($rate->getCustomer());
|
||||
self::assertNotNull($rate->getCustomer()->getId());
|
||||
|
||||
if ($isCollection) {
|
||||
return $this->getRateUrl($rate->getCustomer()->getId());
|
||||
}
|
||||
@@ -46,7 +45,7 @@ class CustomerControllerTest extends APIControllerBaseTestCase
|
||||
return $this->getRateUrl($rate->getCustomer()->getId(), $rate->getId());
|
||||
}
|
||||
|
||||
protected function getRateUrl($id = '1', $rateId = null): string
|
||||
protected function getRateUrl(?int $id = 1, ?int $rateId = null): string
|
||||
{
|
||||
if (null !== $rateId) {
|
||||
return \sprintf('/api/customers/%s/rates/%s', $id, $rateId);
|
||||
|
||||
Reference in New Issue
Block a user