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

@@ -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/');