mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Push updated tests.
This commit is contained in:
@@ -57,7 +57,7 @@ class UserControllerTest extends TestCase
|
||||
public function testDelete()
|
||||
{
|
||||
// create a user first:
|
||||
$user = User::create(['email' => 'some@newu' . rand(1, 1000) . 'ser.nl', 'password' => 'hello', 'blocked' => 0]);
|
||||
$user = User::create(['email' => 'some@newu' . random_int(1, 1000) . 'ser.nl', 'password' => 'hello', 'blocked' => 0]);
|
||||
|
||||
// call API
|
||||
$response = $this->delete('/api/v1/users/' . $user->id);
|
||||
@@ -77,7 +77,7 @@ class UserControllerTest extends TestCase
|
||||
Passport::actingAs($this->emptyUser());
|
||||
|
||||
// create a user first:
|
||||
$user = User::create(['email' => 'some@newu' . rand(1, 1000) . 'ser.nl', 'password' => 'hello', 'blocked' => 0]);
|
||||
$user = User::create(['email' => 'some@newu' . random_int(1, 1000) . 'ser.nl', 'password' => 'hello', 'blocked' => 0]);
|
||||
|
||||
// call API
|
||||
$response = $this->delete('/api/v1/users/' . $user->id);
|
||||
@@ -130,7 +130,7 @@ class UserControllerTest extends TestCase
|
||||
public function testStoreBasic()
|
||||
{
|
||||
$data = [
|
||||
'email' => 'some_new@user' . rand(1, 1000) . '.com',
|
||||
'email' => 'some_new@user' . random_int(1, 1000) . '.com',
|
||||
'blocked' => 0,
|
||||
];
|
||||
|
||||
@@ -180,11 +180,11 @@ class UserControllerTest extends TestCase
|
||||
public function testUpdate()
|
||||
{
|
||||
// create a user first:
|
||||
$user = User::create(['email' => 'some@newu' . rand(1, 1000) . 'ser.nl', 'password' => 'hello', 'blocked' => 0]);
|
||||
$user = User::create(['email' => 'some@newu' . random_int(1, 1000) . 'ser.nl', 'password' => 'hello', 'blocked' => 0]);
|
||||
|
||||
// data:
|
||||
$data = [
|
||||
'email' => 'some-new@email' . rand(1, 1000) . '.com',
|
||||
'email' => 'some-new@email' . random_int(1, 1000) . '.com',
|
||||
'blocked' => 0,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user