Push updated tests.

This commit is contained in:
James Cole
2018-03-28 19:38:20 +02:00
parent be5c44af61
commit 0a71077513
55 changed files with 344 additions and 266 deletions

View File

@@ -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);
}