Update test code.

This commit is contained in:
James Cole
2018-05-11 19:58:10 +02:00
parent 9bb4df4cc3
commit 4d6bc55723
174 changed files with 2138 additions and 940 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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'];

View File

@@ -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'];