mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 16:10:00 +00:00
Update test code.
This commit is contained in:
@@ -39,7 +39,7 @@ class BillFactoryTest extends TestCase
|
||||
* @covers \FireflyIII\Factory\BillFactory
|
||||
* @covers \FireflyIII\Services\Internal\Support\BillServiceTrait
|
||||
*/
|
||||
public function testCreateBasic()
|
||||
public function testCreateBasic(): void
|
||||
{
|
||||
$data = [
|
||||
'name' => 'Some new bill #' . random_int(1, 1000),
|
||||
@@ -73,7 +73,7 @@ class BillFactoryTest extends TestCase
|
||||
* @covers \FireflyIII\Factory\BillFactory
|
||||
* @covers \FireflyIII\Services\Internal\Support\BillServiceTrait
|
||||
*/
|
||||
public function testCreateEmptyNotes()
|
||||
public function testCreateEmptyNotes(): void
|
||||
{
|
||||
$data = [
|
||||
'name' => 'Some new bill #' . random_int(1, 1000),
|
||||
@@ -106,7 +106,7 @@ class BillFactoryTest extends TestCase
|
||||
* @covers \FireflyIII\Factory\BillFactory
|
||||
*
|
||||
*/
|
||||
public function testFindById()
|
||||
public function testFindById(): void
|
||||
{
|
||||
$existing = $this->user()->piggyBanks()->first();
|
||||
/** @var BillFactory $factory */
|
||||
@@ -122,7 +122,7 @@ class BillFactoryTest extends TestCase
|
||||
* @covers \FireflyIII\Factory\BillFactory
|
||||
*
|
||||
*/
|
||||
public function testFindByName()
|
||||
public function testFindByName(): void
|
||||
{
|
||||
$existing = $this->user()->bills()->first();
|
||||
/** @var BillFactory $factory */
|
||||
@@ -139,7 +139,7 @@ class BillFactoryTest extends TestCase
|
||||
* @covers \FireflyIII\Factory\BillFactory
|
||||
*
|
||||
*/
|
||||
public function testFindByUnknownName()
|
||||
public function testFindByUnknownName(): void
|
||||
{
|
||||
/** @var BillFactory $factory */
|
||||
$factory = app(BillFactory::class);
|
||||
@@ -155,7 +155,7 @@ class BillFactoryTest extends TestCase
|
||||
* @covers \FireflyIII\Factory\BillFactory
|
||||
*
|
||||
*/
|
||||
public function testFindNull()
|
||||
public function testFindNull(): void
|
||||
{
|
||||
/** @var BillFactory $factory */
|
||||
$factory = app(BillFactory::class);
|
||||
|
||||
Reference in New Issue
Block a user