mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup and realign.
This commit is contained in:
@@ -159,7 +159,7 @@ class TransactionUpdateServiceTest extends TestCase
|
||||
{
|
||||
/** @var Transaction $source */
|
||||
$source = $this->user()->transactions()->where('amount', '>', 0)->inRandomOrder()->first();
|
||||
$data = [
|
||||
$data = [
|
||||
'currency_id' => 1,
|
||||
'currency_code' => null,
|
||||
'description' => 'Some new description',
|
||||
@@ -187,7 +187,6 @@ class TransactionUpdateServiceTest extends TestCase
|
||||
$result = $service->update($source, $data);
|
||||
|
||||
|
||||
|
||||
$this->assertEquals($source->id, $result->id);
|
||||
$this->assertEquals($result->description, $data['description']);
|
||||
$this->assertEquals($data['foreign_amount'], $result->foreign_amount);
|
||||
@@ -202,7 +201,7 @@ class TransactionUpdateServiceTest extends TestCase
|
||||
{
|
||||
/** @var Transaction $source */
|
||||
$source = $this->user()->transactions()->where('amount', '<', 0)->inRandomOrder()->first();
|
||||
$data = [
|
||||
$data = [
|
||||
'currency_id' => 1,
|
||||
'currency_code' => null,
|
||||
'description' => 'Some new description',
|
||||
|
Reference in New Issue
Block a user