Skip to content
Snippets Groups Projects
Verified Commit c204c444 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12635 TIME 0:10 return civility id

parent 3010e49e
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ class ContactController
$contact = [
'id' => $rawContact['id'],
'civility' => !empty($rawContact['civility']) ? ContactModel::getCivilityLabel(['civilityId' => $rawContact['civility']]) : null,
'civility' => $rawContact['civility'],
'firstname' => $rawContact['firstname'],
'lastname' => $rawContact['lastname'],
'company' => $rawContact['company'],
......
......@@ -22,7 +22,7 @@ class ContactControllerTest extends TestCase
$request = \Slim\Http\Request::createFromEnvironment($environment);
$args = [
'civility' => 'Sir',
'civility' => 'title1',
'firstname' => 'Hal',
'lastname' => 'Jordan',
'company' => 'Green Lantern Corps',
......@@ -82,7 +82,7 @@ class ContactControllerTest extends TestCase
$request = \Slim\Http\Request::createFromEnvironment($environment);
$args = [
'civility' => 'Sir',
'civility' => 'title1',
'firstname' => 'Hal',
'department' => 'Sector 2814',
'function' => 'member',
......@@ -113,7 +113,7 @@ class ContactControllerTest extends TestCase
$request = \Slim\Http\Request::createFromEnvironment($environment);
$args = [
'civility' => 'Sir',
'civility' => 'title1',
'lastname' => 'Sinestro',
'company' => 'Yellow Lantern Corps',
'department' => 'Sector 2813',
......@@ -168,7 +168,7 @@ class ContactControllerTest extends TestCase
$request = \Slim\Http\Request::createFromEnvironment($environment);
$args = [
'civility' => 'Sir',
'civility' => 'title1',
'firstname' => 'Hal',
'department' => 'Sector 2814',
'function' => 'member',
......
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