Release 1.15.3 (#2813)

This commit is contained in:
Kevin Papst
2021-10-05 15:30:29 +02:00
committed by GitHub
parent 162ff07bd5
commit ccb184b17f
11 changed files with 859 additions and 1037 deletions

View File

@@ -165,6 +165,7 @@ class CustomerControllerTest extends APIControllerBaseTest
$team->addProject($project);
$team->addUser($this->getUserByRole(User::ROLE_TEAMLEAD));
$em->persist($team);
$em->flush();
$this->assertAccessIsGranted($client, '/api/customers/1');
$result = json_decode($client->getResponse()->getContent(), true);

View File

@@ -12,7 +12,6 @@ namespace App\Tests\Controller;
use App\Entity\User;
use App\Entity\UserPreference;
use App\Form\Type\InitialViewType;
use App\Form\Type\LanguageType;
/**
* @group integration
@@ -43,16 +42,12 @@ class HomepageControllerTest extends ControllerBaseTest
->setValue('my_profile')
->setType(InitialViewType::class);
$user->addPreference($pref);
$pref = (new UserPreference())
->setName('language')
->setValue('ar')
->setType(LanguageType::class);
$user->addPreference($pref);
$em->persist($pref);
$user->addPreference($pref);
$user->setLanguage('ar');
$em->flush();
$this->request($client, '/homepage');
$this->assertIsRedirect($client, '/ar/profile/');

View File

@@ -214,6 +214,7 @@ class ProjectControllerTest extends ControllerBaseTest
$rate->setActivity($activity);
$rate->setRate(123.45);
$em->persist($rate);
$em->flush();
$this->request($client, '/admin/project/1/duplicate');
$this->assertIsRedirect($client, '/details');

View File

@@ -427,7 +427,7 @@ final class TimesheetFixtures implements TestFixture
}
if ($this->fixedRate) {
$entry->setFixedRate(rand(10, 100));
$entry->setFixedRate((float) rand(10, 100));
}
if ($this->hourlyRate) {