mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Fix some tests
This commit is contained in:
@@ -78,10 +78,7 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
*/
|
||||
public function testEditPageDeniedForUnauthorizedInsideCenter(int $personId)
|
||||
{
|
||||
$client = self::createClient([], [
|
||||
'PHP_AUTH_USER' => 'center a_administrative',
|
||||
'PHP_AUTH_PW' => 'password',
|
||||
]);
|
||||
$client = $this->getClientAuthenticated('center a_administrative');
|
||||
|
||||
$client->request('GET', $this->makeEditPath($personId));
|
||||
|
||||
@@ -96,10 +93,7 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
*/
|
||||
public function testEditPageDeniedForUnauthorizedOutsideCenter(int $personId)
|
||||
{
|
||||
$client = self::createClient([], [
|
||||
'PHP_AUTH_USER' => 'center b_social',
|
||||
'PHP_AUTH_PW' => 'password',
|
||||
]);
|
||||
$client = $this->getClientAuthenticated('center b_social');
|
||||
|
||||
$client->request('GET', $this->makeEditPath($personId));
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class AvgDurationAPWorkPersonAssociatedOnWorkTest extends AbstractExportTest
|
||||
|
||||
public function getFormData()
|
||||
{
|
||||
return [];
|
||||
return [[]];
|
||||
}
|
||||
|
||||
public function getModifiersCombination()
|
||||
|
Reference in New Issue
Block a user