Fix some tests

This commit is contained in:
2023-12-14 21:18:00 +01:00
parent d5476df14c
commit 2dd1b7c943
11 changed files with 92 additions and 127 deletions

View File

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

View File

@@ -38,7 +38,7 @@ class AvgDurationAPWorkPersonAssociatedOnWorkTest extends AbstractExportTest
public function getFormData()
{
return [];
return [[]];
}
public function getModifiersCombination()