mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Last minute fixes in test code and UI
This commit is contained in:
@@ -164,7 +164,7 @@ class BillControllerTest extends TestCase
|
||||
$repository = $this->mock(BillRepositoryInterface::class);
|
||||
$userRepos = $this->mock(UserRepositoryInterface::class);
|
||||
$transformer = $this->mock(BillTransformer::class);
|
||||
|
||||
$euro = $this->getEuro();
|
||||
$pref = new Preference;
|
||||
$pref->data = 50;
|
||||
Preferences::shouldReceive('get')->withArgs(['listPageSize', 50])->atLeast()->once()->andReturn($pref);
|
||||
@@ -174,6 +174,10 @@ class BillControllerTest extends TestCase
|
||||
$transformer->shouldReceive('transform')->atLeast()->once()->andReturn(
|
||||
['id' => 5, 'active' => true, 'name' => 'x', 'next_expected_match' => '2018-01-01',
|
||||
'currency' => $this->getEuro(),
|
||||
'currency_id' => $euro->id,
|
||||
'currency_code' => $euro->code,
|
||||
'currency_symbol' => $euro->symbol,
|
||||
'currency_decimal_places' => $euro->decimal_places,
|
||||
]
|
||||
);
|
||||
|
||||
|
@@ -62,7 +62,7 @@ class TagFactoryTest extends TestCase
|
||||
*/
|
||||
public function testFindOrCreateNew(): void
|
||||
{
|
||||
$tag = sprintf('§Some new tag #%d', $this->randomInt());
|
||||
$tag = sprintf('Some new tag %d', $this->randomInt());
|
||||
/** @var TagFactory $factory */
|
||||
$factory = app(TagFactory::class);
|
||||
$factory->setUser($this->user());
|
||||
|
@@ -79,7 +79,7 @@ class RecurrenceTransformerTest extends TestCase
|
||||
$recurrenceRepos->shouldReceive('getXOccurrences')->andReturn($ranges)->atLeast()->once();
|
||||
$factory->shouldReceive('findOrCreate')->atLeast()->once()->withArgs([null,Mockery::any()])->andReturn($category);
|
||||
$budgetRepos->shouldReceive('findNull')->atLeast()->once()->andReturn($budget);
|
||||
$piggyRepos->shouldReceive('findNull')->atLeast()->once()->andReturn($piggy);
|
||||
$piggyRepos->shouldReceive('findNull')->andReturn($piggy);
|
||||
$billRepos->shouldReceive('find')->andReturn($bill);
|
||||
|
||||
// basic transformation:
|
||||
|
Reference in New Issue
Block a user