mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-01 02:21:45 +00:00
Some small fixes.
This commit is contained in:
@@ -81,6 +81,7 @@ class GoogleCategoryChartGenerator implements CategoryChartGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Collection $categories
|
||||||
* @param Collection $entries
|
* @param Collection $entries
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
|
|||||||
@@ -104,7 +104,8 @@ class FireflyServiceProvider extends ServiceProvider
|
|||||||
//$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\GoogleCategoryChartGenerator');
|
//$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\GoogleCategoryChartGenerator');
|
||||||
$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\ChartJsCategoryChartGenerator');
|
$this->app->bind('FireflyIII\Generator\Chart\Category\CategoryChartGenerator', 'FireflyIII\Generator\Chart\Category\ChartJsCategoryChartGenerator');
|
||||||
|
|
||||||
//$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator', 'FireflyIII\Generator\Chart\PiggyBank\GooglePiggyBankChartGenerator');
|
//$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator',
|
||||||
|
// 'FireflyIII\Generator\Chart\PiggyBank\GooglePiggyBankChartGenerator');
|
||||||
$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator', 'FireflyIII\Generator\Chart\PiggyBank\ChartJsPiggyBankChartGenerator');
|
$this->app->bind('FireflyIII\Generator\Chart\PiggyBank\PiggyBankChartGenerator', 'FireflyIII\Generator\Chart\PiggyBank\ChartJsPiggyBankChartGenerator');
|
||||||
|
|
||||||
//$this->app->bind('FireflyIII\Generator\Chart\Report\ReportChartGenerator', 'FireflyIII\Generator\Chart\Report\GoogleReportChartGenerator');
|
//$this->app->bind('FireflyIII\Generator\Chart\Report\ReportChartGenerator', 'FireflyIII\Generator\Chart\Report\GoogleReportChartGenerator');
|
||||||
|
|||||||
@@ -528,9 +528,10 @@ class TestDataSeeder extends Seeder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $tag
|
* @param $tagName
|
||||||
*
|
*
|
||||||
* @return Tag|null
|
* @return Tag|null
|
||||||
|
* @internal param $tag
|
||||||
*/
|
*/
|
||||||
protected function findTag($tagName)
|
protected function findTag($tagName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use FireflyIII\Helpers\Report\ReportQuery;
|
use FireflyIII\Helpers\Report\ReportQuery;
|
||||||
use FireflyIII\Models\AccountMeta;
|
use FireflyIII\Models\AccountMeta;
|
||||||
use FireflyIII\Models\Transaction;
|
|
||||||
use League\FactoryMuffin\Facade as FactoryMuffin;
|
use League\FactoryMuffin\Facade as FactoryMuffin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -81,7 +80,7 @@ class ReportQueryTest extends TestCase
|
|||||||
);
|
);
|
||||||
|
|
||||||
$amount = 100;
|
$amount = 100;
|
||||||
if($i == 8) {
|
if ($i == 8) {
|
||||||
$amount = 0; // at least one "empty" journal.
|
$amount = 0; // at least one "empty" journal.
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,8 +94,6 @@ class ReportQueryTest extends TestCase
|
|||||||
$journal->transactions[1]->save();
|
$journal->transactions[1]->save();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
$this->be($user);
|
$this->be($user);
|
||||||
|
|
||||||
@@ -151,7 +148,7 @@ class ReportQueryTest extends TestCase
|
|||||||
);
|
);
|
||||||
|
|
||||||
$amount = 100;
|
$amount = 100;
|
||||||
if($i == 8) {
|
if ($i == 8) {
|
||||||
$amount = 0; // at least one "empty" journal.
|
$amount = 0; // at least one "empty" journal.
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,7 +268,7 @@ class ReportQueryTest extends TestCase
|
|||||||
);
|
);
|
||||||
|
|
||||||
$amount = 100;
|
$amount = 100;
|
||||||
if($i == 8) {
|
if ($i == 8) {
|
||||||
$amount = 0; // at least one "empty" journal.
|
$amount = 0; // at least one "empty" journal.
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -337,7 +334,7 @@ class ReportQueryTest extends TestCase
|
|||||||
);
|
);
|
||||||
|
|
||||||
$amount = 100;
|
$amount = 100;
|
||||||
if($i == 8) {
|
if ($i == 8) {
|
||||||
$amount = 0; // at least one "empty" journal.
|
$amount = 0; // at least one "empty" journal.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ class JournalRepositoryTest extends TestCase
|
|||||||
|
|
||||||
// create five journals with incrementing dates:
|
// create five journals with incrementing dates:
|
||||||
$today = new Carbon('2015-01-01');
|
$today = new Carbon('2015-01-01');
|
||||||
for($i=0;$i<5;$i++) {
|
$journal = null;
|
||||||
|
for ($i = 0; $i < 5; $i++) {
|
||||||
// create journal:
|
// create journal:
|
||||||
$journal = FactoryMuffin::create('FireflyIII\Models\TransactionJournal');
|
$journal = FactoryMuffin::create('FireflyIII\Models\TransactionJournal');
|
||||||
$journal->transaction_type_id = $withdrawal;
|
$journal->transaction_type_id = $withdrawal;
|
||||||
|
|||||||
Reference in New Issue
Block a user