Skip to content
Snippets Groups Projects
Verified Commit 19c2c80e authored by Damien's avatar Damien
Browse files

FEAT #13339 TIME 0:10 Fix tu

parent d3559360
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,10 @@ class ContactControllerTest extends TestCase
$this->assertIsInt($responseBody['id']);
self::$id = $responseBody['id'];
$GLOBALS['login'] = 'cchaplin';
$userInfo = \User\models\UserModel::getByLogin(['login' => $GLOBALS['login'], 'select' => ['id']]);
$GLOBALS['id'] = $userInfo['id'];
$args = [
'civility' => 'title1',
'firstname' => 'Hal',
......@@ -75,6 +79,10 @@ class ContactControllerTest extends TestCase
$responseBody = json_decode((string)$response->getBody(), true);
$this->assertSame(self::$id, $responseBody['id']);
$GLOBALS['login'] = 'superadmin';
$userInfo = \User\models\UserModel::getByLogin(['login' => $GLOBALS['login'], 'select' => ['id']]);
$GLOBALS['id'] = $userInfo['id'];
$args2 = [
'civility' => 'title1',
'firstname' => 'Dwight',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment