mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:57:01 +00:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
@@ -56,6 +56,8 @@ class UpdateUserRequest extends Request
|
||||
$input['email'] = trim($input['email']);
|
||||
} elseif (isset($input['email'])) {
|
||||
$input['email'] = false;
|
||||
} else {
|
||||
$input['email'] = $this->user->email;
|
||||
}
|
||||
|
||||
if (array_key_exists('first_name', $input)) {
|
||||
|
||||
@@ -204,6 +204,10 @@ class StorecoveExpense
|
||||
$id_number = $pi->getId();
|
||||
} elseif ($ident == 'routing_id') {
|
||||
$routing_id = $pi->getId();
|
||||
} else{
|
||||
//Sometimes some very unusual identifiers are returned, we should always skip these.
|
||||
// ie. IBAN, etc.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,17 +152,6 @@ class UserTest extends TestCase
|
||||
|
||||
$data['email'] = 'newemail@gmail.com';
|
||||
|
||||
// $response = $this->withHeaders([
|
||||
// 'X-API-SECRET' => config('ninja.api_secret'),
|
||||
// 'X-API-TOKEN' => $company_token->token,
|
||||
// 'X-API-PASSWORD' => 'ALongAndBriliantPassword',
|
||||
// ])->putJson('/api/v1/users/'.$user->hashed_id.'?include=company_user', $data);
|
||||
|
||||
|
||||
// $response->assertStatus(200);
|
||||
|
||||
// $data = $response->json();
|
||||
// $this->assertEquals($data['data']['email'], $data['email']);
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +174,7 @@ class UserTest extends TestCase
|
||||
'X-API-PASSWORD' => 'ALongAndBriliantPassword',
|
||||
])->putJson('/api/v1/users/'.$user->hashed_id.'?include=company_user', $data);
|
||||
|
||||
$response->assertStatus(422);
|
||||
$response->assertStatus(200);
|
||||
|
||||
$data = $user->toArray();
|
||||
unset($data['password']);
|
||||
|
||||
Reference in New Issue
Block a user