mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Update test code.
This commit is contained in:
@@ -33,7 +33,7 @@ class AmountCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\AmountCredit::convert()
|
||||
*/
|
||||
public function testConvert()
|
||||
public function testConvert(): void
|
||||
{
|
||||
$values = [
|
||||
'0' => '0',
|
||||
@@ -161,7 +161,7 @@ class AmountCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\AmountCredit::convert()
|
||||
*/
|
||||
public function testConvertNull()
|
||||
public function testConvertNull(): void
|
||||
{
|
||||
$converter = new AmountCredit;
|
||||
$result = $converter->convert(null);
|
||||
|
||||
@@ -33,7 +33,7 @@ class AmountDebitTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\AmountDebit::convert()
|
||||
*/
|
||||
public function testConvert()
|
||||
public function testConvert(): void
|
||||
{
|
||||
$values = [
|
||||
'0' => '0',
|
||||
@@ -161,7 +161,7 @@ class AmountDebitTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\AmountDebit::convert()
|
||||
*/
|
||||
public function testConvertNull()
|
||||
public function testConvertNull(): void
|
||||
{
|
||||
$converter = new AmountDebit;
|
||||
$result = $converter->convert(null);
|
||||
|
||||
@@ -34,7 +34,7 @@ class AmountTest extends TestCase
|
||||
* @covers \FireflyIII\Import\Converter\Amount::convert()
|
||||
* @covers \FireflyIII\Import\Converter\Amount::stripAmount()
|
||||
*/
|
||||
public function testConvert()
|
||||
public function testConvert(): void
|
||||
{
|
||||
$values = [
|
||||
'0' => '0',
|
||||
@@ -167,7 +167,7 @@ class AmountTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\Amount::convert()
|
||||
*/
|
||||
public function testConvertNull()
|
||||
public function testConvertNull(): void
|
||||
{
|
||||
$converter = new Amount;
|
||||
$result = $converter->convert(null);
|
||||
|
||||
@@ -34,7 +34,7 @@ class INGDebitCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\INGDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertAf()
|
||||
public function testConvertAf(): void
|
||||
{
|
||||
$converter = new INGDebitCredit;
|
||||
$result = $converter->convert('Af');
|
||||
@@ -44,7 +44,7 @@ class INGDebitCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\INGDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertAnything()
|
||||
public function testConvertAnything(): void
|
||||
{
|
||||
$converter = new INGDebitCredit;
|
||||
$result = $converter->convert('9083jkdkj');
|
||||
@@ -54,7 +54,7 @@ class INGDebitCreditTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\INGDebitCredit::convert()
|
||||
*/
|
||||
public function testConvertBij()
|
||||
public function testConvertBij(): void
|
||||
{
|
||||
$converter = new INGDebitCredit;
|
||||
$result = $converter->convert('Bij');
|
||||
|
||||
@@ -38,7 +38,7 @@ class AssetAccountIbansTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\AssetAccountIbans::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Account;
|
||||
$one->id = 17;
|
||||
|
||||
@@ -38,7 +38,7 @@ class AssetAccountsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\AssetAccounts::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Account;
|
||||
$one->id = 23;
|
||||
|
||||
@@ -24,7 +24,6 @@ declare(strict_types=1);
|
||||
namespace Tests\Unit\Import\Mapper;
|
||||
|
||||
use FireflyIII\Import\Mapper\Bills;
|
||||
use FireflyIII\Models\Account;
|
||||
use FireflyIII\Models\Bill;
|
||||
use FireflyIII\Repositories\Bill\BillRepositoryInterface;
|
||||
use Illuminate\Support\Collection;
|
||||
@@ -38,7 +37,7 @@ class BillsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\Bills::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Bill;
|
||||
$one->id = 5;
|
||||
|
||||
@@ -37,7 +37,7 @@ class BudgetsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\Budgets::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Budget;
|
||||
$one->id = 8;
|
||||
|
||||
@@ -37,7 +37,7 @@ class CategoriesTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\Categories::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Category;
|
||||
$one->id = 9;
|
||||
|
||||
@@ -38,7 +38,7 @@ class OpposingAccountIbansTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\OpposingAccountIbans::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Account;
|
||||
$one->id = 21;
|
||||
|
||||
@@ -38,7 +38,7 @@ class OpposingAccountsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\OpposingAccounts::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Account;
|
||||
$one->id = 13;
|
||||
|
||||
@@ -37,7 +37,7 @@ class TagsTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\Tags::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new Tag;
|
||||
$one->id = 12;
|
||||
|
||||
@@ -37,7 +37,7 @@ class TransactionCurrenciesTest extends TestCase
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Mapper\TransactionCurrencies::getMap()
|
||||
*/
|
||||
public function testGetMapBasic()
|
||||
public function testGetMapBasic(): void
|
||||
{
|
||||
$one = new TransactionCurrency;
|
||||
$one->id = 9;
|
||||
|
||||
@@ -35,7 +35,7 @@ class TagsCommaTest extends TestCase
|
||||
/**
|
||||
* \FireflyIII\Import\MapperPreProcess\TagsComma::run
|
||||
*/
|
||||
public function testBasic()
|
||||
public function testBasic(): void
|
||||
{
|
||||
$input = 'some,tags, with, spaces ,and,without,,';
|
||||
$output = ['some', 'tags', 'with', 'spaces', 'and', 'without'];
|
||||
|
||||
@@ -35,7 +35,7 @@ class TagsSpaceTest extends TestCase
|
||||
/**
|
||||
* \FireflyIII\Import\MapperPreProcess\TagsSpace::run
|
||||
*/
|
||||
public function testBasic()
|
||||
public function testBasic(): void
|
||||
{
|
||||
$input = 'some tags with spaces,and without ';
|
||||
$output = ['some', 'tags', 'with', 'spaces,and', 'without'];
|
||||
|
||||
Reference in New Issue
Block a user