mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Push updated tests.
This commit is contained in:
@@ -42,8 +42,8 @@ class BillFactoryTest extends TestCase
|
||||
public function testCreateBasic()
|
||||
{
|
||||
$data = [
|
||||
'name' => 'Some new bill #' . rand(1, 1000),
|
||||
'match' => 'i,am,word' . rand(1, 1000),
|
||||
'name' => 'Some new bill #' . random_int(1, 1000),
|
||||
'match' => 'i,am,word' . random_int(1, 1000),
|
||||
'amount_min' => '5',
|
||||
'amount_max' => '10',
|
||||
'date' => '2018-01-01',
|
||||
@@ -77,8 +77,8 @@ class BillFactoryTest extends TestCase
|
||||
public function testCreateEmptyNotes()
|
||||
{
|
||||
$data = [
|
||||
'name' => 'Some new bill #' . rand(1, 1000),
|
||||
'match' => 'i,am,word' . rand(1, 1000),
|
||||
'name' => 'Some new bill #' . random_int(1, 1000),
|
||||
'match' => 'i,am,word' . random_int(1, 1000),
|
||||
'amount_min' => '5',
|
||||
'amount_max' => '10',
|
||||
'date' => '2018-01-01',
|
||||
@@ -146,7 +146,7 @@ class BillFactoryTest extends TestCase
|
||||
/** @var BillFactory $factory */
|
||||
$factory = app(BillFactory::class);
|
||||
$factory->setUser($this->user());
|
||||
$piggy = $factory->find(null, 'I dont exist' . rand(1, 1000));
|
||||
$piggy = $factory->find(null, 'I dont exist' . random_int(1, 1000));
|
||||
|
||||
$this->assertNull($piggy);
|
||||
}
|
||||
|
Reference in New Issue
Block a user