From 6401b5c9eb542ffe39e4a8ac8cb13f556172a5e8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 28 Mar 2021 10:37:01 +0200 Subject: [PATCH] Clean up readme and old code. --- readme.md | 34 +++++------ .../AvailableBudget/UpdateControllerTest.php | 60 ------------------- 2 files changed, 17 insertions(+), 77 deletions(-) diff --git a/readme.md b/readme.md index 14a6321fa3..c14bac35aa 100644 --- a/readme.md +++ b/readme.md @@ -15,24 +15,24 @@

A free and open source personal finance manager
- Explore the docs » + Explore the documentation

- View Demo + View the demo · - Report Bug + Report a bug · - Request Feature + Request a feature + . + Ask questions

-[![Travis Build Status][build-shield]][build-url] - - [About Firefly III](#about-firefly-iii) - [Purpose](#purpose) - [Features](#features) - - [Who's it for?](#-whos-it-for) + - [Who's it for?](#whos-it-for) - [The Firefly III eco-system](#the-firefly-iii-eco-system) - [Getting Started](#getting-started) - [Contributing](#contributing) @@ -76,26 +76,26 @@ Firefly III is pretty feature packed. Some important stuff first: The most exciting features are: -* Create [recurring transactions to manage your money](https://docs.firefly-iii.org/advanced-concepts/recurring) -* [Rule based transaction handling](https://docs.firefly-iii.org/advanced-concepts/rules) with the ability to create your own rules +* Create [recurring transactions to manage your money](https://docs.firefly-iii.org/advanced-concepts/recurring). +* [Rule based transaction handling](https://docs.firefly-iii.org/advanced-concepts/rules) with the ability to create your own rules. Then the things that make you go "yeah OK, makes sense". -* A [double-entry](https://en.wikipedia.org/wiki/Double-entry_bookkeeping_system) bookkeeping system -* Save towards a goal using [piggy banks](https://docs.firefly-iii.org/advanced-concepts/piggies) -* View [income and expense reports](https://docs.firefly-iii.org/advanced-concepts/reports) +* A [double-entry](https://en.wikipedia.org/wiki/Double-entry_bookkeeping_system) bookkeeping system. +* Save towards a goal using [piggy banks](https://docs.firefly-iii.org/advanced-concepts/piggies). +* View [income and expense reports](https://docs.firefly-iii.org/advanced-concepts/reports). And the things you would hope for but not expect: -* 2 factor authentication for extra security 🔒 -* Supports [any currency you want](https://docs.firefly-iii.org/concepts/currencies), including crypto currencies such as ₿itcoin and Ξthereum +* 2 factor authentication for extra security 🔒. +* Supports [any currency you want](https://docs.firefly-iii.org/concepts/currencies), including crypto currencies such as ₿itcoin and Ξthereum. * There is a [Docker image](https://docs.firefly-iii.org/installation/docker) and an [Heroku script](https://docs.firefly-iii.org/installation/third_parties). And to organise everything: -* Clear views that should show you how you're doing -* Easy navigation through your records -* Lots of charts because we all love them +* Clear views that should show you how you're doing. +* Easy navigation through your records. +* Lots of charts because we all love them. Many more features are listed in the [documentation](https://docs.firefly-iii.org/about-firefly-iii/introduction). diff --git a/tests/Api/Models/AvailableBudget/UpdateControllerTest.php b/tests/Api/Models/AvailableBudget/UpdateControllerTest.php index 19ae06ce36..daef6d3b10 100644 --- a/tests/Api/Models/AvailableBudget/UpdateControllerTest.php +++ b/tests/Api/Models/AvailableBudget/UpdateControllerTest.php @@ -122,64 +122,4 @@ class UpdateControllerTest extends TestCase return $configuration->generateAll(); } - - - /** - * @return array - */ - public function updateDataSet(): array - { - $faker = Factory::create(); - $currencies = ['EUR', 'GBP', 'USD', 'HUF']; - $currencyCode = $currencies[rand(0, count($currencies) - 1)]; - $set = [ - 'currency_id' => [ - 'id' => 1, - 'fields' => [ - 'currency_id' => ['test_value' => (string)$faker->numberBetween(1, 10)], - ], - 'extra_ignore' => ['currency_code', 'currency_symbol'], - ], - 'currency_code' => [ - 'id' => 1, - 'fields' => [ - 'currency_code' => ['test_value' => $currencyCode], - ], - 'extra_ignore' => ['currency_id', 'currency_symbol'], - ], - 'amount' => [ - 'id' => 1, - 'fields' => [ - 'amount' => ['test_value' => number_format($faker->randomFloat(2, 10, 100), 2)], - ], - 'extra_ignore' => [], - ], - 'start' => [ - 'id' => 1, - 'fields' => [ - 'start' => ['test_value' => $faker->dateTimeBetween('-2 year', '-1 year')->format('Y-m-d')], - ], - 'extra_ignore' => [], - ], - 'end' => [ - 'id' => 1, - 'fields' => [ - 'end' => ['test_value' => $faker->dateTimeBetween('-1 year', 'now')->format('Y-m-d')], - ], - 'extra_ignore' => [], - ], - 'both' => [ - 'id' => 1, - 'fields' => [ - 'start' => ['test_value' => $faker->dateTimeBetween('-2 year', '-1 year')->format('Y-m-d')], - 'end' => ['test_value' => $faker->dateTimeBetween('-1 year', 'now')->format('Y-m-d')], - ], - 'extra_ignore' => [], - ], - ]; - - return $set; - } - - } \ No newline at end of file