Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Removed all test cases.
James Cole4586c1ef52b5
diff --git a/codeception.yml b/codeception.ymldeleted file mode 100644index 3284792656..0000000000--- a/codeception.yml+++ /dev/null@@ -1,18 +0,0 @@-actor: Tester-paths:- tests: tests- log: tests/_output- data: tests/_data- helpers: tests/_support-settings:- bootstrap: _bootstrap.php- colors: true- memory_limit: 1024M-modules:- config:-coverage:- enabled: true- remote: false- whitelist:- include:- - app/*\ No newline at end of filediff --git a/composer.json b/composer.jsonindex 59a4fbdd9c..06b22adc7b 100644--- a/composer.json+++ b/composer.json@@ -26,23 +26,14 @@"watson/validating": "dev-master","doctrine/dbal": "~2.5","illuminate/html": "~5.0",- "barryvdh/laravel-ide-helper": "~2.0","league/commonmark": "0.7.*"},"require-dev": {"barryvdh/laravel-debugbar": "@stable",+ "barryvdh/laravel-ide-helper": "~2.0","phpunit/phpunit": "~4.0",- "phpspec/phpspec": "~2.1",- "codeception/codeception": "@stable",- "codeception/c3": "@stable",- "league/factory-muffin": "~2.1",- "codeception/phpbuiltinserver": "*",- "codeception/specify": "*",- "codeception/verify": "*",- "fzaninotto/faker": "1.*",- "codeclimate/php-test-reporter": "dev-master"-+ "phpspec/phpspec": "~2.1"},"autoload": {"classmap": [diff --git a/composer.lock b/composer.lockindex 95b03522ad..535b49e4e9 100644--- a/composer.lock+++ b/composer.lock@@ -4,71 +4,8 @@"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file","This file is @generated automatically"],- "hash": "d78d46376975c1bfab9823b66a30ed5f",+ "hash": "16fc4f36aacc020097a22c4fe7ef7687","packages": [- {- "name": "barryvdh/laravel-ide-helper",- "version": "v2.0.1",- "source": {- "type": "git",- "url": "https://github.com/barryvdh/laravel-ide-helper.git",- "reference": "81b7febfc64168ea1af57261aa4dfc9acefd5429"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/81b7febfc64168ea1af57261aa4dfc9acefd5429",- "reference": "81b7febfc64168ea1af57261aa4dfc9acefd5429",- "shasum": ""- },- "require": {- "illuminate/console": "5.0.x",- "illuminate/filesystem": "5.0.x",- "illuminate/support": "5.0.x",- "php": ">=5.4.0",- "phpdocumentor/reflection-docblock": "2.0.x",- "symfony/class-loader": "~2.3"- },- "require-dev": {- "doctrine/dbal": "~2.3"- },- "suggest": {- "doctrine/dbal": "Load information from the database about models for phpdocs (~2.3)"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.0-dev"- }- },- "autoload": {- "psr-4": {- "Barryvdh\\LaravelIdeHelper\\": "src"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Barry vd. Heuvel",- "email": "[email protected]"- }- ],- "description": "Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.",- "keywords": [- "autocomplete",- "codeintel",- "helper",- "ide",- "laravel",- "netbeans",- "phpdoc",- "phpstorm",- "sublime"- ],- "time": "2015-02-23 15:55:54"- },{"name": "classpreloader/classpreloader","version": "1.2.0",@@ -1485,55 +1422,6 @@],"time": "2015-01-18 11:29:59"},- {- "name": "phpdocumentor/reflection-docblock",- "version": "2.0.4",- "source": {- "type": "git",- "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",- "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",- "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8",- "shasum": ""- },- "require": {- "php": ">=5.3.3"- },- "require-dev": {- "phpunit/phpunit": "~4.0"- },- "suggest": {- "dflydev/markdown": "~1.0",- "erusev/parsedown": "~1.0"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.0.x-dev"- }- },- "autoload": {- "psr-0": {- "phpDocumentor": [- "src/"- ]- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Mike van Riel",- "email": "[email protected]"- }- ],- "time": "2015-02-03 12:10:50"- },{"name": "psr/log","version": "1.0.0",@@ -1695,56 +1583,6 @@],"time": "2014-12-05 14:17:14"},- {- "name": "symfony/class-loader",- "version": "v2.6.4",- "target-dir": "Symfony/Component/ClassLoader",- "source": {- "type": "git",- "url": "https://github.com/symfony/ClassLoader.git",- "reference": "deac802f76910708ab50d039806cfd1866895b52"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/symfony/ClassLoader/zipball/deac802f76910708ab50d039806cfd1866895b52",- "reference": "deac802f76910708ab50d039806cfd1866895b52",- "shasum": ""- },- "require": {- "php": ">=5.3.3"- },- "require-dev": {- "symfony/finder": "~2.0,>=2.0.5"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.6-dev"- }- },- "autoload": {- "psr-0": {- "Symfony\\Component\\ClassLoader\\": ""- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Symfony Community",- "homepage": "http://symfony.com/contributors"- },- {- "name": "Fabien Potencier",- "email": "[email protected]"- }- ],- "description": "Symfony ClassLoader Component",- "homepage": "http://symfony.com",- "time": "2015-01-05 14:28:40"- },{"name": "symfony/console","version": "v2.6.4",@@ -2599,26 +2437,42 @@"time": "2015-02-19 10:26:39"},{- "name": "codeception/c3",- "version": "2.0.3",+ "name": "barryvdh/laravel-ide-helper",+ "version": "v2.0.1","source": {"type": "git",- "url": "https://github.com/Codeception/c3.git",- "reference": "30321efb2421c5d201d02e2cb8da1a1ca96e4a38"+ "url": "https://github.com/barryvdh/laravel-ide-helper.git",+ "reference": "81b7febfc64168ea1af57261aa4dfc9acefd5429"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/Codeception/c3/zipball/30321efb2421c5d201d02e2cb8da1a1ca96e4a38",- "reference": "30321efb2421c5d201d02e2cb8da1a1ca96e4a38",+ "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/81b7febfc64168ea1af57261aa4dfc9acefd5429",+ "reference": "81b7febfc64168ea1af57261aa4dfc9acefd5429","shasum": ""},"require": {- "php": ">=5.4.0"+ "illuminate/console": "5.0.x",+ "illuminate/filesystem": "5.0.x",+ "illuminate/support": "5.0.x",+ "php": ">=5.4.0",+ "phpdocumentor/reflection-docblock": "2.0.x",+ "symfony/class-loader": "~2.3"+ },+ "require-dev": {+ "doctrine/dbal": "~2.3"+ },+ "suggest": {+ "doctrine/dbal": "Load information from the database about models for phpdocs (~2.3)"},"type": "library",+ "extra": {+ "branch-alias": {+ "dev-master": "2.0-dev"+ }+ },"autoload": {"psr-4": {- "Codeception\\c3\\": "."+ "Barryvdh\\LaravelIdeHelper\\": "src"}},"notification-url": "https://packagist.org/downloads/",@@ -2627,75 +2481,57 @@],"authors": [{- "name": "Michael Bodnarchuk",- "email": "[email protected]",- "homepage": "http://codegyre.com"+ "name": "Barry vd. Heuvel",+ "email": "[email protected]"}],- "description": "CodeCoverage collector for Codeception",- "homepage": "http://codeception.com/",+ "description": "Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.","keywords": [- "code coverage",- "codecoverage"+ "autocomplete",+ "codeintel",+ "helper",+ "ide",+ "laravel",+ "netbeans",+ "phpdoc",+ "phpstorm",+ "sublime"],- "time": "2014-11-18 22:06:45"+ "time": "2015-02-23 15:55:54"},{- "name": "codeception/codeception",- "version": "2.0.11",+ "name": "doctrine/instantiator",+ "version": "1.0.4","source": {"type": "git",- "url": "https://github.com/Codeception/Codeception.git",- "reference": "9c7f23eff3e607225e9f43277c6d9cdb03d30b84"+ "url": "https://github.com/doctrine/instantiator.git",+ "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/Codeception/Codeception/zipball/9c7f23eff3e607225e9f43277c6d9cdb03d30b84",- "reference": "9c7f23eff3e607225e9f43277c6d9cdb03d30b84",+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f976e5de371104877ebc89bd8fecb0019ed9c119",+ "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119","shasum": ""},"require": {- "ext-json": "*",- "ext-mbstring": "*",- "facebook/webdriver": "~0.4|~0.5",- "guzzlehttp/guzzle": "~4.0|~5.0",- "php": ">=5.4.0",- "phpunit/phpunit": "~4.5.0",- "symfony/browser-kit": "~2.4",- "symfony/console": "~2.4",- "symfony/css-selector": "~2.4",- "symfony/dom-crawler": "~2.4,!=2.4.5",- "symfony/event-dispatcher": "~2.4",- "symfony/finder": "~2.4",- "symfony/yaml": "~2.4"+ "php": ">=5.3,<8.0-DEV"},"require-dev": {- "codeception/specify": "~0.3",- "facebook/php-sdk": "~3.2",- "flow/jsonpath": "~0.2",- "monolog/monolog": "~1.8",- "pda/pheanstalk": "~2.0",- "videlalvaro/php-amqplib": "~2.4"- },- "suggest": {- "codeception/phpbuiltinserver": "Extension to start and stop PHP built-in web server for your tests",- "codeception/specify": "BDD-style code blocks",- "codeception/verify": "BDD-style assertions",- "monolog/monolog": "Log test steps",- "phpseclib/phpseclib": "Extension required to use the SFTP option in the FTP Module."+ "athletic/athletic": "~0.1.8",+ "ext-pdo": "*",+ "ext-phar": "*",+ "phpunit/phpunit": "~4.0",+ "squizlabs/php_codesniffer": "2.0.*@ALPHA"},- "bin": [- "codecept"- ],"type": "library","extra": {"branch-alias": {- "dev-master": "2.1-dev"+ "dev-master": "1.0.x-dev"}},"autoload": {"psr-0": {- "Codeception": "src"+ "Doctrine\\Instantiator\\": "src"}},"notification-url": "https://packagist.org/downloads/",@@ -2704,44 +2540,55 @@],"authors": [{- "name": "Michael Bodnarchuk",- "email": "[email protected]",- "homepage": "http://codegyre.com"+ "name": "Marco Pivetta",+ "email": "[email protected]",+ "homepage": "http://ocramius.github.com/"}],- "description": "BDD-style testing framework",- "homepage": "http://codeception.com/",+ "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",+ "homepage": "https://github.com/doctrine/instantiator","keywords": [- "BDD",- "TDD",- "acceptance testing",- "functional testing",- "unit testing"+ "constructor",+ "instantiate"],- "time": "2015-02-23 23:10:03"+ "time": "2014-10-13 12:58:55"},{- "name": "codeception/phpbuiltinserver",- "version": "v1.2.1",+ "name": "maximebf/debugbar",+ "version": "v1.10.4","source": {"type": "git",- "url": "https://github.com/tiger-seo/PhpBuiltinServer.git",- "reference": "730206313b7e85d9ed4838ba02a0aee24fce1239"+ "url": "https://github.com/maximebf/php-debugbar.git",+ "reference": "7b2006e6e095126b5a061ec33fca3d90ea8a8219"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/tiger-seo/PhpBuiltinServer/zipball/730206313b7e85d9ed4838ba02a0aee24fce1239",- "reference": "730206313b7e85d9ed4838ba02a0aee24fce1239",+ "url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/7b2006e6e095126b5a061ec33fca3d90ea8a8219",+ "reference": "7b2006e6e095126b5a061ec33fca3d90ea8a8219","shasum": ""},"require": {- "codeception/codeception": ">=2.0.2",- "php": ">=5.4.0"+ "php": ">=5.3.0",+ "psr/log": "~1.0",+ "symfony/var-dumper": "~2.6"+ },+ "require-dev": {+ "phpunit/phpunit": "~4.0"+ },+ "suggest": {+ "kriswallsmith/assetic": "The best way to manage assets",+ "monolog/monolog": "Log using Monolog",+ "predis/predis": "Redis storage"},"type": "library",+ "extra": {+ "branch-alias": {+ "dev-master": "1.10-dev"+ }+ },"autoload": {"psr-0": {- "Codeception": "src"+ "DebugBar": "src/"}},"notification-url": "https://packagist.org/downloads/",@@ -2750,697 +2597,66 @@],"authors": [{- "name": "tiger-seo",- "email": "[email protected]"- }- ],- "description": "PhpBuiltinServer extension for Codeception",- "keywords": [- "codeception"- ],- "time": "2014-09-19 10:14:07"- },- {- "name": "codeception/specify",- "version": "0.4.1",- "source": {- "type": "git",- "url": "https://github.com/Codeception/Specify.git",- "reference": "0c0ae07adfc231115b3b72ade22f44c23c199ded"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/Codeception/Specify/zipball/0c0ae07adfc231115b3b72ade22f44c23c199ded",- "reference": "0c0ae07adfc231115b3b72ade22f44c23c199ded",- "shasum": ""- },- "require": {- "myclabs/deep-copy": "~1.1",- "php": ">=5.4.0"- },- "require-dev": {- "phpunit/phpunit": "~4.0"- },- "type": "library",- "autoload": {- "psr-0": {- "Codeception\\": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "authors": [- {- "name": "Michael Bodnarchuk",- "email": "[email protected]"- }- ],- "description": "BDD code blocks for PHPUnit and Codeception",- "time": "2014-10-17 00:06:51"- },- {- "name": "codeception/verify",- "version": "0.2.7",- "source": {- "type": "git",- "url": "https://github.com/Codeception/Verify.git",- "reference": "66e5074905f4d9590ddb805d123fe632f4baa488"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/Codeception/Verify/zipball/66e5074905f4d9590ddb805d123fe632f4baa488",- "reference": "66e5074905f4d9590ddb805d123fe632f4baa488",- "shasum": ""- },- "require-dev": {- "phpunit/phpunit": "3.7.*"- },- "type": "library",- "autoload": {- "files": [- "src/Codeception/function.php"- ]- },- "notification-url": "https://packagist.org/downloads/",- "authors": [- {- "name": "Michael Bodnarchuk",- "email": "[email protected]",- "homepage": "http://codeception.com"- }- ],- "description": "BDD assertion library for PHPUnit",- "time": "2014-01-22 14:40:33"- },- {- "name": "codeclimate/php-test-reporter",- "version": "dev-master",- "source": {- "type": "git",- "url": "https://github.com/codeclimate/php-test-reporter.git",- "reference": "2a67d5d940e175fddba15f29c81a646ace26dc38"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/codeclimate/php-test-reporter/zipball/2a67d5d940e175fddba15f29c81a646ace26dc38",- "reference": "2a67d5d940e175fddba15f29c81a646ace26dc38",- "shasum": ""- },- "require": {- "ext-curl": "*",- "php": ">=5.3",- "satooshi/php-coveralls": "0.6.*",- "symfony/console": ">=2.0"- },- "require-dev": {- "ext-xdebug": "*",- "phpunit/phpunit": "3.7.*@stable"- },- "bin": [- "composer/bin/test-reporter"- ],- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "0.1.x-dev"- }- },- "autoload": {- "psr-0": {- "CodeClimate\\Component": "src/",- "CodeClimate\\Bundle": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Code Climate",- "email": "[email protected]",- "homepage": "https://codeclimate.com"- }- ],- "description": "PHP client for reporting test coverage to Code Climate",- "homepage": "https://github.com/codeclimate/php-test-reporter",- "keywords": [- "codeclimate",- "coverage"- ],- "time": "2015-02-20 22:40:35"- },- {- "name": "doctrine/instantiator",- "version": "1.0.4",- "source": {- "type": "git",- "url": "https://github.com/doctrine/instantiator.git",- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f976e5de371104877ebc89bd8fecb0019ed9c119",- "reference": "f976e5de371104877ebc89bd8fecb0019ed9c119",- "shasum": ""- },- "require": {- "php": ">=5.3,<8.0-DEV"- },- "require-dev": {- "athletic/athletic": "~0.1.8",- "ext-pdo": "*",- "ext-phar": "*",- "phpunit/phpunit": "~4.0",- "squizlabs/php_codesniffer": "2.0.*@ALPHA"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "1.0.x-dev"- }- },- "autoload": {- "psr-0": {- "Doctrine\\Instantiator\\": "src"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Marco Pivetta",- "email": "[email protected]",- "homepage": "http://ocramius.github.com/"- }- ],- "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",- "homepage": "https://github.com/doctrine/instantiator",- "keywords": [- "constructor",- "instantiate"- ],- "time": "2014-10-13 12:58:55"- },- {- "name": "facebook/webdriver",- "version": "v0.5.1",- "source": {- "type": "git",- "url": "https://github.com/facebook/php-webdriver.git",- "reference": "bbcb697efb394d17bd9ec3d467e7da847cde4509"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/facebook/php-webdriver/zipball/bbcb697efb394d17bd9ec3d467e7da847cde4509",- "reference": "bbcb697efb394d17bd9ec3d467e7da847cde4509",- "shasum": ""- },- "require": {- "php": ">=5.3.19"- },- "require-dev": {- "phpdocumentor/phpdocumentor": "2.*",- "phpunit/phpunit": "3.7.*"- },- "type": "library",- "autoload": {- "classmap": [- "lib/"- ]- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "Apache-2.0"- ],- "description": "A php client for WebDriver",- "homepage": "https://github.com/facebook/php-webdriver",- "keywords": [- "facebook",- "php",- "selenium",- "webdriver"- ],- "time": "2014-11-05 20:53:09"- },- {- "name": "fzaninotto/faker",- "version": "v1.4.0",- "source": {- "type": "git",- "url": "https://github.com/fzaninotto/Faker.git",- "reference": "010c7efedd88bf31141a02719f51fb44c732d5a0"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/010c7efedd88bf31141a02719f51fb44c732d5a0",- "reference": "010c7efedd88bf31141a02719f51fb44c732d5a0",- "shasum": ""- },- "require": {- "php": ">=5.3.3"- },- "require-dev": {- "phpunit/phpunit": "~4.0",- "squizlabs/php_codesniffer": "~1.5"- },- "type": "library",- "extra": {- "branch-alias": []- },- "autoload": {- "psr-0": {- "Faker": "src/",- "Faker\\PHPUnit": "test/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "François Zaninotto"- }- ],- "description": "Faker is a PHP library that generates fake data for you.",- "keywords": [- "data",- "faker",- "fixtures"- ],- "time": "2014-06-04 14:43:02"- },- {- "name": "guzzle/guzzle",- "version": "v3.9.2",- "source": {- "type": "git",- "url": "https://github.com/guzzle/guzzle3.git",- "reference": "54991459675c1a2924122afbb0e5609ade581155"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/54991459675c1a2924122afbb0e5609ade581155",- "reference": "54991459675c1a2924122afbb0e5609ade581155",- "shasum": ""- },- "require": {- "ext-curl": "*",- "php": ">=5.3.3",- "symfony/event-dispatcher": "~2.1"- },- "replace": {- "guzzle/batch": "self.version",- "guzzle/cache": "self.version",- "guzzle/common": "self.version",- "guzzle/http": "self.version",- "guzzle/inflection": "self.version",- "guzzle/iterator": "self.version",- "guzzle/log": "self.version",- "guzzle/parser": "self.version",- "guzzle/plugin": "self.version",- "guzzle/plugin-async": "self.version",- "guzzle/plugin-backoff": "self.version",- "guzzle/plugin-cache": "self.version",- "guzzle/plugin-cookie": "self.version",- "guzzle/plugin-curlauth": "self.version",- "guzzle/plugin-error-response": "self.version",- "guzzle/plugin-history": "self.version",- "guzzle/plugin-log": "self.version",- "guzzle/plugin-md5": "self.version",- "guzzle/plugin-mock": "self.version",- "guzzle/plugin-oauth": "self.version",- "guzzle/service": "self.version",- "guzzle/stream": "self.version"- },- "require-dev": {- "doctrine/cache": "~1.3",- "monolog/monolog": "~1.0",- "phpunit/phpunit": "3.7.*",- "psr/log": "~1.0",- "symfony/class-loader": "~2.1",- "zendframework/zend-cache": "2.*,<2.3",- "zendframework/zend-log": "2.*,<2.3"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "3.9-dev"- }- },- "autoload": {- "psr-0": {- "Guzzle": "src/",- "Guzzle\\Tests": "tests/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Michael Dowling",- "email": "[email protected]",- "homepage": "https://github.com/mtdowling"- },- {- "name": "Guzzle Community",- "homepage": "https://github.com/guzzle/guzzle/contributors"- }- ],- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",- "homepage": "http://guzzlephp.org/",- "keywords": [- "client",- "curl",- "framework",- "http",- "http client",- "rest",- "web service"- ],- "time": "2014-08-11 04:32:36"- },- {- "name": "guzzlehttp/guzzle",- "version": "5.2.0",- "source": {- "type": "git",- "url": "https://github.com/guzzle/guzzle.git",- "reference": "475b29ccd411f2fa8a408e64576418728c032cfa"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/475b29ccd411f2fa8a408e64576418728c032cfa",- "reference": "475b29ccd411f2fa8a408e64576418728c032cfa",- "shasum": ""- },- "require": {- "guzzlehttp/ringphp": "~1.0",- "php": ">=5.4.0"- },- "require-dev": {- "ext-curl": "*",- "phpunit/phpunit": "~4.0",- "psr/log": "~1.0"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "5.0-dev"- }- },- "autoload": {- "psr-4": {- "GuzzleHttp\\": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Michael Dowling",- "email": "[email protected]",- "homepage": "https://github.com/mtdowling"- }- ],- "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",- "homepage": "http://guzzlephp.org/",- "keywords": [- "client",- "curl",- "framework",- "http",- "http client",- "rest",- "web service"- ],- "time": "2015-01-28 01:03:29"- },- {- "name": "guzzlehttp/ringphp",- "version": "1.0.6",- "source": {- "type": "git",- "url": "https://github.com/guzzle/RingPHP.git",- "reference": "f43ab34aad69ca0ba04172cf2c3cd5c12fc0e5a4"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/guzzle/RingPHP/zipball/f43ab34aad69ca0ba04172cf2c3cd5c12fc0e5a4",- "reference": "f43ab34aad69ca0ba04172cf2c3cd5c12fc0e5a4",- "shasum": ""- },- "require": {- "guzzlehttp/streams": "~3.0",- "php": ">=5.4.0",- "react/promise": "~2.0"- },- "require-dev": {- "ext-curl": "*",- "phpunit/phpunit": "~4.0"- },- "suggest": {- "ext-curl": "Guzzle will use specific adapters if cURL is present"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "1.0-dev"- }- },- "autoload": {- "psr-4": {- "GuzzleHttp\\Ring\\": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Michael Dowling",- "email": "[email protected]",- "homepage": "https://github.com/mtdowling"- }- ],- "description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.",- "time": "2015-02-26 20:43:09"- },- {- "name": "guzzlehttp/streams",- "version": "3.0.0",- "source": {- "type": "git",- "url": "https://github.com/guzzle/streams.git",- "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/guzzle/streams/zipball/47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5",- "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5",- "shasum": ""- },- "require": {- "php": ">=5.4.0"- },- "require-dev": {- "phpunit/phpunit": "~4.0"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "3.0-dev"- }- },- "autoload": {- "psr-4": {- "GuzzleHttp\\Stream\\": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Michael Dowling",- "email": "[email protected]",- "homepage": "https://github.com/mtdowling"+ "name": "Maxime Bouroumeau-Fuseau",+ "email": "[email protected]",+ "homepage": "http://maximebf.com"}],- "description": "Provides a simple abstraction over streams of data",- "homepage": "http://guzzlephp.org/",+ "description": "Debug bar in the browser for php application",+ "homepage": "https://github.com/maximebf/php-debugbar","keywords": [- "Guzzle",- "stream"+ "debug"],- "time": "2014-10-12 19:18:40"+ "time": "2015-02-05 07:51:20"},{- "name": "league/factory-muffin",- "version": "v2.1.1",+ "name": "phpdocumentor/reflection-docblock",+ "version": "2.0.4","source": {"type": "git",- "url": "https://github.com/thephpleague/factory-muffin.git",- "reference": "91f0adcdac6b5f7bf2277ac2c90f94352afe65de"+ "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",+ "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/thephpleague/factory-muffin/zipball/91f0adcdac6b5f7bf2277ac2c90f94352afe65de",- "reference": "91f0adcdac6b5f7bf2277ac2c90f94352afe65de",+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",+ "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8","shasum": ""},"require": {- "fzaninotto/faker": "1.4.*","php": ">=5.3.3"},- "replace": {- "zizaco/factory-muff": "self.version"- },- "require-dev": {- "illuminate/database": "~4.1",- "phpunit/phpunit": "~4.0"- },- "suggest": {- "illuminate/database": "Factory Muffin works well with eloquent models."- },- "type": "library",- "autoload": {- "psr-4": {- "League\\FactoryMuffin\\": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Graham Campbell",- "email": "[email protected]"- },- {- "name": "Zizaco Zizuini",- "email": "[email protected]"- },- {- "name": "Scott Robertson",- "email": "[email protected]"- }- ],- "description": "The goal of this package is to enable the rapid creation of objects for the purpose of testing.",- "homepage": "http://factory-muffin.thephpleague.com/",- "keywords": [- "factory",- "laravel",- "testing"- ],- "time": "2014-09-18 18:29:06"- },- {- "name": "maximebf/debugbar",- "version": "v1.10.4",- "source": {- "type": "git",- "url": "https://github.com/maximebf/php-debugbar.git",- "reference": "7b2006e6e095126b5a061ec33fca3d90ea8a8219"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/7b2006e6e095126b5a061ec33fca3d90ea8a8219",- "reference": "7b2006e6e095126b5a061ec33fca3d90ea8a8219",- "shasum": ""- },- "require": {- "php": ">=5.3.0",- "psr/log": "~1.0",- "symfony/var-dumper": "~2.6"- },"require-dev": {"phpunit/phpunit": "~4.0"},"suggest": {- "kriswallsmith/assetic": "The best way to manage assets",- "monolog/monolog": "Log using Monolog",- "predis/predis": "Redis storage"+ "dflydev/markdown": "~1.0",+ "erusev/parsedown": "~1.0"},"type": "library","extra": {"branch-alias": {- "dev-master": "1.10-dev"- }- },- "autoload": {- "psr-0": {- "DebugBar": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Maxime Bouroumeau-Fuseau",- "email": "[email protected]",- "homepage": "http://maximebf.com"- }- ],- "description": "Debug bar in the browser for php application",- "homepage": "https://github.com/maximebf/php-debugbar",- "keywords": [- "debug"- ],- "time": "2015-02-05 07:51:20"- },- {- "name": "myclabs/deep-copy",- "version": "1.2.1",- "source": {- "type": "git",- "url": "https://github.com/myclabs/DeepCopy.git",- "reference": "d93c485e71bcd22df0a994e9e3e03a3ef3a3e3f3"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/d93c485e71bcd22df0a994e9e3e03a3ef3a3e3f3",- "reference": "d93c485e71bcd22df0a994e9e3e03a3ef3a3e3f3",- "shasum": ""- },- "require": {- "php": ">=5.4.0"- },- "require-dev": {- "doctrine/collections": "1.*",- "phpunit/phpunit": "~4.1"+ "dev-master": "2.0.x-dev"+ }},- "type": "library","autoload": {- "psr-4": {- "DeepCopy\\": "src/DeepCopy/"+ "psr-0": {+ "phpDocumentor": [+ "src/"+ ]}},"notification-url": "https://packagist.org/downloads/","license": ["MIT"],- "description": "Create deep copies (clones) of your objects",- "homepage": "https://github.com/myclabs/DeepCopy",- "keywords": [- "clone",- "copy",- "duplicate",- "object",- "object graph"+ "authors": [+ {+ "name": "Mike van Riel",+ "email": "[email protected]"+ }],- "time": "2014-11-20 05:11:17"+ "time": "2015-02-03 12:10:50"},{"name": "phpspec/php-diff",@@ -3982,118 +3198,6 @@],"time": "2014-10-03 05:12:11"},- {- "name": "react/promise",- "version": "v2.2.0",- "source": {- "type": "git",- "url": "https://github.com/reactphp/promise.git",- "reference": "365fcee430dfa4ace1fbc75737ca60ceea7eeeef"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/reactphp/promise/zipball/365fcee430dfa4ace1fbc75737ca60ceea7eeeef",- "reference": "365fcee430dfa4ace1fbc75737ca60ceea7eeeef",- "shasum": ""- },- "require": {- "php": ">=5.4.0"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.0-dev"- }- },- "autoload": {- "psr-4": {- "React\\Promise\\": "src/"- },- "files": [- "src/functions_include.php"- ]- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Jan Sorgalla",- "email": "[email protected]"- }- ],- "description": "A lightweight implementation of CommonJS Promises/A for PHP",- "time": "2014-12-30 13:32:42"- },- {- "name": "satooshi/php-coveralls",- "version": "v0.6.1",- "source": {- "type": "git",- "url": "https://github.com/satooshi/php-coveralls.git",- "reference": "dd0df95bd37a7cf5c5c50304dfe260ffe4b50760"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/satooshi/php-coveralls/zipball/dd0df95bd37a7cf5c5c50304dfe260ffe4b50760",- "reference": "dd0df95bd37a7cf5c5c50304dfe260ffe4b50760",- "shasum": ""- },- "require": {- "ext-curl": "*",- "ext-json": "*",- "ext-simplexml": "*",- "guzzle/guzzle": ">=3.0",- "php": ">=5.3",- "psr/log": "1.0.0",- "symfony/config": ">=2.0",- "symfony/console": ">=2.0",- "symfony/stopwatch": ">=2.2",- "symfony/yaml": ">=2.0"- },- "require-dev": {- "apigen/apigen": "2.8.*@stable",- "pdepend/pdepend": "dev-master",- "phpmd/phpmd": "dev-master",- "phpunit/php-invoker": ">=1.1.0,<1.2.0",- "phpunit/phpunit": "3.7.*@stable",- "sebastian/finder-facade": "dev-master",- "sebastian/phpcpd": "1.4.*@stable",- "squizlabs/php_codesniffer": "1.4.*@stable",- "theseer/fdomdocument": "dev-master"- },- "bin": [- "composer/bin/coveralls"- ],- "type": "library",- "autoload": {- "psr-0": {- "Contrib\\Component": "src/",- "Contrib\\Bundle": "src/"- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Kitamura Satoshi",- "email": "[email protected]",- "homepage": "https://www.facebook.com/satooshi.jp"- }- ],- "description": "PHP client library for Coveralls API",- "homepage": "https://github.com/satooshi/php-coveralls",- "keywords": [- "ci",- "coverage",- "github",- "test"- ],- "time": "2013-05-04 08:07:33"- },{"name": "sebastian/comparator","version": "1.1.1",@@ -4466,229 +3570,25 @@"time": "2014-12-15 14:25:24"},{- "name": "symfony/browser-kit",- "version": "v2.6.4",- "target-dir": "Symfony/Component/BrowserKit",- "source": {- "type": "git",- "url": "https://github.com/symfony/BrowserKit.git",- "reference": "2ecec44ed5047020c65dd6e4a4b2f3cf13ae3c04"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/symfony/BrowserKit/zipball/2ecec44ed5047020c65dd6e4a4b2f3cf13ae3c04",- "reference": "2ecec44ed5047020c65dd6e4a4b2f3cf13ae3c04",- "shasum": ""- },- "require": {- "php": ">=5.3.3",- "symfony/dom-crawler": "~2.0,>=2.0.5"- },- "require-dev": {- "symfony/css-selector": "~2.0,>=2.0.5",- "symfony/process": "~2.0,>=2.0.5"- },- "suggest": {- "symfony/process": ""- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.6-dev"- }- },- "autoload": {- "psr-0": {- "Symfony\\Component\\BrowserKit\\": ""- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Symfony Community",- "homepage": "http://symfony.com/contributors"- },- {- "name": "Fabien Potencier",- "email": "[email protected]"- }- ],- "description": "Symfony BrowserKit Component",- "homepage": "http://symfony.com",- "time": "2015-01-03 08:01:59"- },- {- "name": "symfony/config",- "version": "v2.6.4",- "target-dir": "Symfony/Component/Config",- "source": {- "type": "git",- "url": "https://github.com/symfony/Config.git",- "reference": "a9f781ba1221067d1f07c8cec0bc50f81b8d7408"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/symfony/Config/zipball/a9f781ba1221067d1f07c8cec0bc50f81b8d7408",- "reference": "a9f781ba1221067d1f07c8cec0bc50f81b8d7408",- "shasum": ""- },- "require": {- "php": ">=5.3.3",- "symfony/filesystem": "~2.3"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.6-dev"- }- },- "autoload": {- "psr-0": {- "Symfony\\Component\\Config\\": ""- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Symfony Community",- "homepage": "http://symfony.com/contributors"- },- {- "name": "Fabien Potencier",- "email": "[email protected]"- }- ],- "description": "Symfony Config Component",- "homepage": "http://symfony.com",- "time": "2015-01-21 20:57:55"- },- {- "name": "symfony/css-selector",- "version": "v2.6.4",- "target-dir": "Symfony/Component/CssSelector",- "source": {- "type": "git",- "url": "https://github.com/symfony/CssSelector.git",- "reference": "3f80ecc614fec68d5b4a84a0703db3fdf5ce8584"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/symfony/CssSelector/zipball/3f80ecc614fec68d5b4a84a0703db3fdf5ce8584",- "reference": "3f80ecc614fec68d5b4a84a0703db3fdf5ce8584",- "shasum": ""- },- "require": {- "php": ">=5.3.3"- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.6-dev"- }- },- "autoload": {- "psr-0": {- "Symfony\\Component\\CssSelector\\": ""- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Symfony Community",- "homepage": "http://symfony.com/contributors"- },- {- "name": "Jean-François Simon",- "email": "[email protected]"- },- {- "name": "Fabien Potencier",- "email": "[email protected]"- }- ],- "description": "Symfony CssSelector Component",- "homepage": "http://symfony.com",- "time": "2015-01-03 08:01:59"- },- {- "name": "symfony/dom-crawler",+ "name": "symfony/class-loader","version": "v2.6.4",- "target-dir": "Symfony/Component/DomCrawler",+ "target-dir": "Symfony/Component/ClassLoader","source": {"type": "git",- "url": "https://github.com/symfony/DomCrawler.git",- "reference": "26a9eb302decd828990e1015afaa11b78b016073"+ "url": "https://github.com/symfony/ClassLoader.git",+ "reference": "deac802f76910708ab50d039806cfd1866895b52"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/symfony/DomCrawler/zipball/26a9eb302decd828990e1015afaa11b78b016073",- "reference": "26a9eb302decd828990e1015afaa11b78b016073",+ "url": "https://api.github.com/repos/symfony/ClassLoader/zipball/deac802f76910708ab50d039806cfd1866895b52",+ "reference": "deac802f76910708ab50d039806cfd1866895b52","shasum": ""},"require": {"php": ">=5.3.3"},"require-dev": {- "symfony/css-selector": "~2.3"- },- "suggest": {- "symfony/css-selector": ""- },- "type": "library",- "extra": {- "branch-alias": {- "dev-master": "2.6-dev"- }- },- "autoload": {- "psr-0": {- "Symfony\\Component\\DomCrawler\\": ""- }- },- "notification-url": "https://packagist.org/downloads/",- "license": [- "MIT"- ],- "authors": [- {- "name": "Symfony Community",- "homepage": "http://symfony.com/contributors"- },- {- "name": "Fabien Potencier",- "email": "[email protected]"- }- ],- "description": "Symfony DomCrawler Component",- "homepage": "http://symfony.com",- "time": "2015-01-03 08:01:59"- },- {- "name": "symfony/stopwatch",- "version": "v2.6.4",- "target-dir": "Symfony/Component/Stopwatch",- "source": {- "type": "git",- "url": "https://github.com/symfony/Stopwatch.git",- "reference": "e8da5286132ba75ce4b4275fbf0f4cd369bfd71c"- },- "dist": {- "type": "zip",- "url": "https://api.github.com/repos/symfony/Stopwatch/zipball/e8da5286132ba75ce4b4275fbf0f4cd369bfd71c",- "reference": "e8da5286132ba75ce4b4275fbf0f4cd369bfd71c",- "shasum": ""- },- "require": {- "php": ">=5.3.3"+ "symfony/finder": "~2.0,>=2.0.5"},"type": "library","extra": {@@ -4698,7 +3598,7 @@},"autoload": {"psr-0": {- "Symfony\\Component\\Stopwatch\\": ""+ "Symfony\\Component\\ClassLoader\\": ""}},"notification-url": "https://packagist.org/downloads/",@@ -4715,9 +3615,9 @@"email": "[email protected]"}],- "description": "Symfony Stopwatch Component",+ "description": "Symfony ClassLoader Component","homepage": "http://symfony.com",- "time": "2015-01-03 08:01:59"+ "time": "2015-01-05 14:28:40"},{"name": "symfony/yaml",@@ -4772,10 +3672,7 @@"stability-flags": {"grumpydictator/gchart": 20,"watson/validating": 20,- "barryvdh/laravel-debugbar": 0,- "codeception/codeception": 0,- "codeception/c3": 0,- "codeclimate/php-test-reporter": 20+ "barryvdh/laravel-debugbar": 0},"prefer-stable": false,"prefer-lowest": false,diff --git a/phpunit.xml b/phpunit.xmlindex 08522be980..910d6195f7 100644--- a/phpunit.xml+++ b/phpunit.xml@@ -18,5 +18,6 @@<env name="APP_ENV" value="testing"/><env name="CACHE_DRIVER" value="array"/><env name="SESSION_DRIVER" value="array"/>+ <env name="QUEUE_DRIVER" value="sync"/></php>-</phpunit>+</phpunit>\ No newline at end of filediff --git a/tests/_bootstrap.php b/tests/_bootstrap.phpdeleted file mode 100644index 2a9ae24d6c..0000000000--- a/tests/_bootstrap.php+++ /dev/null@@ -1,9 +0,0 @@-<?php-$db = realpath(__DIR__ . '/_data') . '/db.sqlite';-$dump = realpath(__DIR__ . '/_data') . '/dump.sql';-if (!file_exists($db)) {- $out = [];- exec('touch ' . $db);- exec('php artisan migrate --seed --env=testing', $out);- exec('sqlite3 tests/_data/db.sqlite .dump > tests/_data/dump.sql', $out);-}diff --git a/tests/_data/db.sh b/tests/_data/db.shdeleted file mode 100755index cf12ed0718..0000000000--- a/tests/_data/db.sh+++ /dev/null@@ -1,6 +0,0 @@-#!/bin/bash-touch tests/_data/db.sqlite-php artisan env-php artisan migrate --seed-sqlite3 tests/_data/db.sqlite .dump > tests/_data/dump.sql-exit 0\ No newline at end of filediff --git a/tests/_support/AcceptanceHelper.php b/tests/_support/AcceptanceHelper.phpdeleted file mode 100644index d09c6e4b18..0000000000--- a/tests/_support/AcceptanceHelper.php+++ /dev/null@@ -1,10 +0,0 @@-<?php-namespace Codeception\Module;--// here you can define custom actions-// all public methods declared in helper class will be available in $I--class AcceptanceHelper extends \Codeception\Module-{--}diff --git a/tests/_support/FunctionalHelper.php b/tests/_support/FunctionalHelper.phpdeleted file mode 100644index 22cc714277..0000000000--- a/tests/_support/FunctionalHelper.php+++ /dev/null@@ -1,10 +0,0 @@-<?php-namespace Codeception\Module;--// here you can define custom actions-// all public methods declared in helper class will be available in $I--class FunctionalHelper extends \Codeception\Module-{--}diff --git a/tests/_support/UnitHelper.php b/tests/_support/UnitHelper.phpdeleted file mode 100644index dcbc192e2b..0000000000--- a/tests/_support/UnitHelper.php+++ /dev/null@@ -1,10 +0,0 @@-<?php-namespace Codeception\Module;--// here you can define custom actions-// all public methods declared in helper class will be available in $I--class UnitHelper extends \Codeception\Module-{--}diff --git a/tests/acceptance.suite.yml b/tests/acceptance.suite.ymldeleted file mode 100644index 601e703cd6..0000000000--- a/tests/acceptance.suite.yml+++ /dev/null@@ -1,10 +0,0 @@-# Codeception Test Suite Configuration--# suite for acceptance tests.-# perform tests in browser using the WebDriver or PhpBrowser.-# If you need both WebDriver and PHPBrowser tests - create a separate suite.--class_name: AcceptanceTester-modules:- enabled:- - AcceptanceHelperdiff --git a/tests/acceptance/_bootstrap.php b/tests/acceptance/_bootstrap.phpdeleted file mode 100644index 8a88555806..0000000000--- a/tests/acceptance/_bootstrap.php+++ /dev/null@@ -1,2 +0,0 @@-<?php-// Here you can initialize variables that will be available to your testsdiff --git a/tests/functional.suite.yml b/tests/functional.suite.ymldeleted file mode 100644index f226eb08d7..0000000000--- a/tests/functional.suite.yml+++ /dev/null@@ -1,20 +0,0 @@-# Codeception Test Suite Configuration--# suite for functional (integration) tests.-# emulate web requests and make application process them.-# Include one of framework modules (Symfony2, Yii2, Laravel4) to use it.--class_name: FunctionalTester-modules:- enabled: [Db, Filesystem, FunctionalHelper, Laravel5]- config:- Db:- populate: false- cleanup: true- dsn: 'sqlite:tests/_data/db.sqlite'- user: ''- password: ''- dump: tests/_data/dump.sql- Laravel5:- environment: 'testing'- filters: falsediff --git a/tests/functional/AccountControllerCest.php b/tests/functional/AccountControllerCest.phpdeleted file mode 100644index ebf2c3205d..0000000000--- a/tests/functional/AccountControllerCest.php+++ /dev/null@@ -1,202 +0,0 @@-<?php-use FireflyIII\Models\Account;--/**- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class AccountControllerCest- */-class AccountControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);-- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- // @codingStandardsIgnoreStart- $I->wantTo('create a new asset account');- $I->amOnPage('/accounts/create/asset');- $I->see('Create a new asset account');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $account = Account::where('name', 'Delete me')->first();- $I->wantTo('delete an asset account');- $I->amOnPage('/accounts/delete/'.$account->id);- $I->see('Delete account');- $I->see($account->name);- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $account = Account::where('name', 'Delete me')->first();- $I->wantTo('destroy an asset account');- $I->amOnPage('/accounts/delete/'.$account->id);- $I->see('Delete account');- $I->see($account->name);- $I->submitForm('#destroy', []);- $I->dontSeeRecord('accounts', ['id' => 3, 'deleted_at' => null]);- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $account = Account::where('name', 'Delete me')->first();- $I->wantTo('edit an asset account');- $I->amOnPage('/accounts/edit/'.$account->id);- $I->see('Edit asset account');- $I->see($account->name);- }-- /**- * @param FunctionalTester $I- */- public function failUpdate(FunctionalTester $I)- {- $account = Account::where('name', 'Delete me')->first();- $I->wantTo('update an asset account and fail');- $I->amOnPage('/accounts/edit/'.$account->id);- $I->see('Edit asset account');- $I->see($account->name);- $I->submitForm('#update', ['name' => '', 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'update']);- $I->seeRecord('accounts', ['name' => 'Delete me']);-- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('see a list of accounts');- $I->amOnPage('/accounts/asset');- $I->see('Checking account');- $I->see('Delete me');- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $account = Account::where('name', 'Delete me')->first();- $I->wantTo('see one account');- $I->amOnPage('/accounts/show/'.$account->id);- $I->see('Details for');- $I->see($account->name);- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->amOnPage('/accounts/create/asset');- $I->wantTo('store a new asset account');- $I->see('Create a new asset account');- $I->submitForm('#store', ['name' => 'New through tests.', 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'store']);- $I->seeRecord('accounts', ['name' => 'New through tests.']);- }-- /**- * @param FunctionalTester $I- */- public function storeAndCreateAnother(FunctionalTester $I)- {- $I->amOnPage('/accounts/create/asset');- $I->wantTo('store a new asset account and create another');- $I->see('Create a new asset account');- $I->submitForm(- '#store', ['name' => 'New through tests.', 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'create_another']- );- $I->seeRecord('accounts', ['name' => 'New through tests.']);- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->amOnPage('/accounts/create/asset');- $I->wantTo('make storing a new asset account fail.');- $I->see('Create a new asset account');- $I->submitForm('#store', ['name' => null, 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'validate_only']);- $I->dontSeeRecord('accounts', ['name' => 'New through tests.']);- }-- /**- * @param FunctionalTester $I- */- public function storeOpeningBalance(FunctionalTester $I)- {- $I->amOnPage('/accounts/create/asset');- $I->wantTo('store a new asset account with a balance');- $I->see('Create a new asset account');- $I->submitForm(- '#store', ['name' => 'New through tests with balance.',- 'openingBalance' => 10,- 'openingBalanceDate' => '2015-01-01',- 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'store']- );- $I->seeRecord('accounts', ['name' => 'New through tests with balance.']);- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $account = Account::where('name', 'Delete me')->first();- $I->wantTo('update an asset account');- $I->amOnPage('/accounts/edit/' . $account->id);- $I->see('Edit asset account');- $I->see($account->name);- $I->submitForm('#update', ['name' => 'Update me', 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'update']);- $I->seeRecord('accounts', ['name' => 'Update me']);-- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturn(FunctionalTester $I)- {- $account = Account::where('name', 'Savings account')->first();- $I->wantTo('update an asset account and return to form');- $I->amOnPage('/accounts/edit/' . $account->id);- $I->see('Edit asset account');- $I->see($account->name);- $I->submitForm(- '#update', ['name' => 'Savings accountXX', 'what' => 'asset', 'account_role' => 'defaultExpense', 'post_submit_action' => 'return_to_edit']- );- $I->seeRecord('accounts', ['name' => 'Savings accountXX']);-- }--}diff --git a/tests/functional/BillControllerCest.php b/tests/functional/BillControllerCest.phpdeleted file mode 100644index 5c5362548c..0000000000--- a/tests/functional/BillControllerCest.php+++ /dev/null@@ -1,278 +0,0 @@-<?php--use FireflyIII\User;--/**- * Class BillControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- */-class BillControllerCest-{-- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a bill');- $I->amOnPage('/bills/create');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('delete a bill');- $I->amOnPage('/bills/delete/' . $bill->id);- $I->see('Delete "' . $bill->name . '"');- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('destroy a bill');- $I->amOnPage('/bills/delete/' . $bill->id);- $I->see('Delete "' . $bill->name . '"');- $I->submitForm('#destroy', []);- $I->see('The bill was deleted.');-- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('edit a bill');- $I->amOnPage('/bills/edit/' . $bill->id);- $I->see($bill->name);--- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('see all bills');- $I->amOnPage('/bills');- $I->see('Bills');- $I->see($bill->name);- }-- /**- * @param FunctionalTester $I- */- public function rescan(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('rescan a bill');- $I->amOnPage('/bills/rescan/' . $bill->id);- $I->see('Rescanned everything.');- }-- /**- * @param FunctionalTester $I- */- public function rescanInactive(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->where('active', 0)->first();- $I->wantTo('rescan an inactive bill');- $I->amOnPage('/bills/rescan/' . $bill->id);- $I->see('Inactive bills cannot be scanned.');- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('show a bill');- $I->amOnPage('/bills/show/' . $bill->id);- $I->see($bill->name);- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->wantTo('store a bill');- $I->amOnPage('/bills/create');- $I->submitForm(- '#store', [- 'name' => 'Some bill',- 'match' => 'one,two',- 'amount_min' => 10,- 'amount_max' => 20,- 'post_submit_action' => 'store',- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0- ]- );- $I->see('Bill "Some bill" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->wantTo('store a bill and fail');- $I->amOnPage('/bills/create');- $I->submitForm(- '#store', [- 'name' => 'Some bill',- 'match' => '',- 'amount_min' => 10,- 'amount_max' => 20,- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0- ]- );- $I->dontSeeInDatabase('bills', ['name' => 'Some bill']);- $I->see('Could not store bill');- }-- /**- * @param FunctionalTester $I- */- public function storeRecreate(FunctionalTester $I)- {- $I->wantTo('validate a bill and create another one');- $I->amOnPage('/bills/create');- $I->submitForm(- '#store', [- 'name' => 'Some bill',- 'match' => 'one,two',- 'amount_min' => 10,- 'amount_max' => 20,- 'post_submit_action' => 'create_another',- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0,-- ]- );- $I->see('Bill "Some bill" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeValidate(FunctionalTester $I)- {- $I->wantTo('validate a bill');- $I->amOnPage('/bills/create');- $I->submitForm(- '#store', [- 'name' => 'Some bill',- 'match' => 'one,two',- 'amount_min' => 10,- 'amount_max' => 20,- 'post_submit_action' => 'validate_only',- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0,-- ]- );- $I->see('form-group has-success has-feedback');- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('update a bill');- $I->amOnPage('/bills/edit/' . $bill->id);- $I->submitForm(- '#update', [- 'name' => 'Some bill',- 'match' => 'bla,bla',- 'amount_min' => 10,- 'amount_max' => 20,- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0- ]- );- $I->see('Bill "Some bill" updated.');- }-- /**- * @param FunctionalTester $I- */- public function updateFail(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('update a bill and fail');- $I->amOnPage('/bills/edit/' . $bill->id);- $I->submitForm(- '#update', [- 'name' => 'Some bill',- 'match' => '',- 'amount_min' => 10,- 'amount_max' => 20,- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0- ]- );- $I->see('Could not update bill');- }-- /**- * @param FunctionalTester $I- */- public function updateReturn(FunctionalTester $I)- {- $bill = User::whereEmail('[email protected]')->first()->bills()->first();- $I->wantTo('update a bill and return to edit it');- $I->amOnPage('/bills/edit/' . $bill->id);- $I->submitForm(- '#update', [- 'name' => 'Some bill',- 'match' => 'bla,bla',- 'amount_min' => 10,- 'amount_max' => 20,- 'post_submit_action' => 'return_to_edit',- 'date' => date('Y-m-d'),- 'repeat_freq' => 'monthly',- 'skip' => 0- ]- );- $I->see('Bill "Some bill" updated.');- }--}diff --git a/tests/functional/BudgetControllerCest.php b/tests/functional/BudgetControllerCest.phpdeleted file mode 100644index 7259be9975..0000000000--- a/tests/functional/BudgetControllerCest.php+++ /dev/null@@ -1,242 +0,0 @@-<?php--use FireflyIII\Models\Budget;--/**- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class BudgetControllerCest- */-class BudgetControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a budget');- $I->amOnRoute('budgets.create');- $I->see('Create a new budget');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $budget = Budget::where('name', 'Delete me')->first();- $I->wantTo('delete a budget');- $I->amOnPage('/budgets/delete/' . $budget->id);- $I->see('Delete budget');- $I->see($budget->name);- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $budget = Budget::where('name', 'Delete me')->first();- $I->wantTo('destroy a budget');- $I->amOnPage('/budgets/delete/' . $budget->id);- $I->see('Delete budget');- $I->see($budget->name);- $I->submitForm('#destroy', []);- $I->see(' was deleted.');- $I->see($budget->name);- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $budget = Budget::where('name', 'Delete me')->first();- $I->wantTo('edit a budget');- $I->amOnPage('/budgets/edit/' . $budget->id);- $I->see('Edit budget');- $I->see($budget->name);- }-- /**- * @param FunctionalTester $I- */- public function failUpdate(FunctionalTester $I)- {- $budget = Budget::where('name', 'Delete me')->first();- $I->wantTo('update a budget and fail');- $I->amOnPage('/budgets/edit/' . $budget->id);- $I->see('Edit budget');- $I->see($budget->name);- $I->submitForm('#update', ['name' => '', 'post_submit_action' => 'update']);- $I->seeRecord('budgets', ['name' => $budget->name]);-- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('show all budgets');- $I->amOnPage('/budgets');- $I->see('Budgets');- }-- /**- * @param FunctionalTester $I- */- public function indexNoBudget(FunctionalTester $I)- {- $I->wantTo('see transactions without a budget');- $I->amOnPage('/budgets/list/noBudget');- $I->see('Transactions without a budget in');- }-- /**- * @param FunctionalTester $I- */- public function postUpdateIncome(FunctionalTester $I)- {- $date = date('FY');- $I->wantTo('process the update to my monthly income');- $I->amOnPage('/budgets/income');- $I->see('Update (expected) income for');- $I->submitForm('#income', ['amount' => 1200]);- $I->seeRecord('preferences', ['name' => 'budgetIncomeTotal' . $date, 'data' => 1200]);- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $I->wantTo('show a budget');- $I->amOnPage('/budgets/show/3');- $I->see('Delete me');- }-- /**- * @param FunctionalTester $I- */- public function showInvalidRepetition(FunctionalTester $I)- {- $I->wantTo('show a budget with a repetition that does not match the budget.');- $I->amOnPage('/budgets/show/1/3');- $I->see('Invalid selection');- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->amOnPage('/budgets/create');- $I->wantTo('store a new budget');- $I->see('Create a new budget');- $I->submitForm('#store', ['name' => 'New budget.', 'post_submit_action' => 'store']);- $I->seeRecord('budgets', ['name' => 'New budget.']);- }-- /**- * @param FunctionalTester $I- */- public function storeAndCreateAnother(FunctionalTester $I)- {- $I->amOnPage('/budgets/create');- $I->wantTo('store a new budget and create another');- $I->see('Create a new budget');- $I->submitForm('#store', ['name' => 'New budget.', 'post_submit_action' => 'create_another']);- $I->seeRecord('budgets', ['name' => 'New budget.']);- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->amOnPage('/budgets/create');- $I->wantTo('make storing a new budget fail.');- $I->see('Create a new budget');- $I->submitForm('#store', ['name' => null, 'post_submit_action' => 'store']);- $I->dontSeeRecord('budgets', ['name' => 'New budget.']);- }-- /**- * @param FunctionalTester $I- */- public function testAmount(FunctionalTester $I)- {- $I->wantTo('update the amount for a budget and limit repetition');- $I->amOnPage('/budgets');-- ///budgets/income-- $token = $I->grabValueFrom("input[name='_token']");--- $I->sendAjaxPostRequest('/budgets/amount/1', ['amount' => 100, '_token' => $token]);- $I->canSeeResponseCodeIs(200);- $I->see('Groceries');-// $I->seeInDatabase('budgets', ['id' => 1]);- #$I->seeInDatabase('budget_limits', ['budget_id' => 1, 'amount' => 100.00]);- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $budget = Budget::where('name', 'Delete me')->first();- $I->wantTo('update a budget');- $I->amOnPage('/budgets/edit/'.$budget->id);- $I->see('Edit budget');- $I->see($budget->name);- $I->submitForm('#update', ['name' => 'Update me', 'post_submit_action' => 'update']);- $I->seeRecord('budgets', ['name' => 'Update me']);-- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturn(FunctionalTester $I)- {- $budget = Budget::where('name', 'Delete me')->first();- $I->wantTo('update a budget and return to form');- $I->amOnPage('/budgets/edit/'.$budget->id);- $I->see('Edit budget');- $I->see($budget->name);- $I->submitForm(- '#update', ['name' => 'Savings accountXX', 'post_submit_action' => 'return_to_edit']- );- $I->seeRecord('budgets', ['name' => 'Savings accountXX']);-- }-- /**- * @param FunctionalTester $I- */- public function updateIncome(FunctionalTester $I)- {- $I->amOnPage('/budgets/income');- $I->wantTo('update my monthly income');- $I->see('Update (expected) income for ');- }-}diff --git a/tests/functional/CategoryControllerCest.php b/tests/functional/CategoryControllerCest.phpdeleted file mode 100644index cef60dee22..0000000000--- a/tests/functional/CategoryControllerCest.php+++ /dev/null@@ -1,201 +0,0 @@-<?php--/**- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class CategoryControllerCest- */-class CategoryControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a new category');- $I->amOnPage('/categories/create');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $I->wantTo('delete a category');- $I->amOnPage('/categories/delete/4');- $I->see('Delete category "Delete me"');- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $I->wantTo('destroy a category');- $I->amOnPage('/categories/delete/4');- $I->see('Delete category "Delete me"');- $I->submitForm('#destroy', []);- $I->see('Category "Delete me" was deleted.');-- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $I->wantTo('edit a category');- $I->amOnPage('/categories/edit/4');- $I->see('Edit category "Delete me"');- }-- /**- * @param FunctionalTester $I- */- public function failUpdate(FunctionalTester $I)- {- $I->wantTo('update a category and fail');- $I->amOnPage('/categories/edit/4');- $I->see('Edit category "Delete me"');- $I->submitForm('#update', ['name' => '', 'post_submit_action' => 'update']);- $I->seeRecord('categories', ['name' => 'Delete me']);-- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('show all categories');- $I->amOnPage('/categories');- }- /**- * @param FunctionalTester $I- */- public function indexNoCategory(FunctionalTester $I)- {- $I->wantTo('see transactions without a category');- $I->amOnPage('/categories/list/noCategory');- $I->see('Transactions without a category in');- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $I->wantTo('show a category');- $I->amOnPage('/categories/show/4');- $I->see('Delete me');- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->amOnPage('/categories/create');- $I->wantTo('store a new category');- $I->see('Create a new category');- $I->submitForm('#store', ['name' => 'New category.', 'post_submit_action' => 'store']);- $I->seeRecord('categories', ['name' => 'New category.']);- }-- /**- * @param FunctionalTester $I- */- public function storeAndCreateAnother(FunctionalTester $I)- {- $I->amOnPage('/categories/create');- $I->wantTo('store a new category and create another');- $I->see('Create a new category');- $I->submitForm('#store', ['name' => 'New category.', 'post_submit_action' => 'create_another']);- $I->seeRecord('categories', ['name' => 'New category.']);- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->amOnPage('/categories/create');- $I->wantTo('make storing a new category fail.');- $I->see('Create a new category');- $I->submitForm('#store', ['name' => null, 'post_submit_action' => 'validate_only']);- $I->dontSeeRecord('categories', ['name' => 'New category.']);- }-- /**- * @param FunctionalTester $I- */- public function storeValidateOnly(FunctionalTester $I)- {- $I->amOnPage('/categories/create');- $I->wantTo('validate a new category');- $I->see('Create a new category');- $I->submitForm('#store', ['name' => 'New category.', 'post_submit_action' => 'validate_only']);- $I->dontSeeRecord('categories', ['name' => 'New category.']);- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $I->wantTo('update a category');- $I->amOnPage('/categories/edit/4');- $I->see('Edit category "Delete me"');- $I->submitForm('#update', ['name' => 'Update me', 'post_submit_action' => 'update']);- $I->seeRecord('categories', ['name' => 'Update me']);-- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturn(FunctionalTester $I)- {- $I->wantTo('update a category and return to form');- $I->amOnPage('/categories/edit/4');- $I->see('Edit category "Delete me"');- $I->submitForm(- '#update', ['name' => 'Savings accountXX', 'post_submit_action' => 'return_to_edit']- );- $I->seeRecord('categories', ['name' => 'Savings accountXX']);-- }-- /**- * @param FunctionalTester $I- */- public function validateUpdateOnly(FunctionalTester $I)- {- $I->wantTo('update a category and validate only');- $I->amOnPage('/categories/edit/4');- $I->see('Edit category "Delete me"');- $I->submitForm(- '#update', ['name' => 'Validate Only', 'post_submit_action' => 'validate_only']- );- $I->dontSeeRecord('categories', ['name' => 'Savings accountXX']);- $I->seeRecord('categories', ['name' => 'Delete me']);-- }--}diff --git a/tests/functional/CurrencyControllerCest.php b/tests/functional/CurrencyControllerCest.phpdeleted file mode 100644index 168fffc5cb..0000000000--- a/tests/functional/CurrencyControllerCest.php+++ /dev/null@@ -1,202 +0,0 @@-<?php--/**- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class CurrencyControllerCest- */-class CurrencyControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }--- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a currency');- $I->amOnRoute('currency.create');- $I->see('Create a new currency');- }-- /**- * @param FunctionalTester $I- */- public function defaultCurrency(FunctionalTester $I)- {- $I->wantTo('make US Dollar the default currency');- $I->amOnPage('/currency/default/2');- $I->see('US Dollar is now the default currency.');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $I->wantTo('delete a currency');- $I->amOnPage('/currency/delete/3');- $I->see('Delete currency "Hungarian forint"');- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $I->wantTo('destroy a currency');- $I->amOnPage('/currency/delete/3');- $I->see('Delete currency "Hungarian forint"');- $I->submitForm('#destroy', []);- $I->see('Currency "Hungarian forint" deleted');- }-- /**- * @param FunctionalTester $I- */- public function destroyFail(FunctionalTester $I)- {- $I->wantTo('destroy a currency currently in use');- $I->amOnPage('/currency/delete/1');- $I->see('Cannot delete Euro because there are still transactions attached to it.');- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $I->wantTo('edit a currency');- $I->amOnPage('/currency/edit/2');- $I->see('Edit currency "US Dollar"');- }-- /**- * @param FunctionalTester $I- */- public function failUpdate(FunctionalTester $I)- {- $I->wantTo('update a currency and fail');- $I->amOnPage('/currency/edit/2');- $I->see('Edit currency "US Dollar"');- $I->submitForm('#update', ['name' => 'Failed update', 'code' => '123', 'post_submit_action' => 'update']);- $I->dontSeeRecord('transaction_currencies', ['name' => 'Failed update']);-- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('show all currencies');- $I->amOnPage('/currency');- $I->see('fa-usd');- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->amOnPage('/currency/create');- $I->wantTo('store a new currency');- $I->see('Create a new currency');- $I->submitForm('#store', ['name' => 'New currency.', 'symbol' => 'C', 'code' => 'CXX', 'post_submit_action' => 'store']);- $I->seeRecord('transaction_currencies', ['name' => 'New currency.']);- }-- /**- * @param FunctionalTester $I- */- public function storeAndCreateAnother(FunctionalTester $I)- {- $I->amOnPage('/currency/create');- $I->wantTo('store a new currency and create another');- $I->see('Create a new currency');- $I->submitForm('#store', ['name' => 'Store and create another.', 'symbol' => 'C', 'code' => 'CXX', 'post_submit_action' => 'create_another']);- $I->seeRecord('transaction_currencies', ['name' => 'Store and create another.']);- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->amOnPage('/currency/create');- $I->wantTo('make storing a new currency fail.');- $I->see('Create a new currency');- $I->submitForm('#store', ['name' => 'Store and fail', 'symbol' => null, 'code' => '123', 'post_submit_action' => 'store']);- $I->dontSeeRecord('transaction_currencies', ['name' => 'Store and fail']);- }-- /**- * @param FunctionalTester $I- */- public function storeValidateOnly(FunctionalTester $I)- {- $I->amOnPage('/currency/create');- $I->wantTo('validate a new currency');- $I->see('Create a new currency');- $I->submitForm('#store', ['name' => 'Store validate only.', 'symbol' => 'C', 'code' => 'CXX', 'post_submit_action' => 'validate_only']);- $I->dontSeeRecord('transaction_currencies', ['name' => 'Store validate only.']);- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $I->wantTo('update a currency');- $I->amOnPage('/currency/edit/2');- $I->see('Edit currency "US Dollar"');- $I->submitForm('#update', ['name' => 'Successful update', 'symbol' => '$', 'code' => 'USD', 'post_submit_action' => 'update']);- $I->seeRecord('transaction_currencies', ['name' => 'Successful update']);-- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturn(FunctionalTester $I)- {- $I->wantTo('update a currency and return to form');- $I->amOnPage('/currency/edit/2');- $I->see('Edit currency "US Dollar"');- $I->submitForm(- '#update', ['name' => 'US DollarXXX', 'symbol' => '$', 'code' => 'USD', 'post_submit_action' => 'return_to_edit']- );- $I->seeRecord('transaction_currencies', ['name' => 'US DollarXXX']);-- }-- /**- * @param FunctionalTester $I- */- public function validateUpdateOnly(FunctionalTester $I)- {- $I->wantTo('update a currency and validate only');- $I->amOnPage('/currency/edit/2');- $I->see('Edit currency "US Dollar"');- $I->submitForm('#update', ['name' => 'Update Validate Only', 'post_submit_action' => 'validate_only']);- $I->dontSeeRecord('transaction_currencies', ['name' => 'Update Validate Only']);- $I->seeRecord('transaction_currencies', ['name' => 'US Dollar']);-- }-}diff --git a/tests/functional/GoogleChartControllerCest.php b/tests/functional/GoogleChartControllerCest.phpdeleted file mode 100644index a570d9214d..0000000000--- a/tests/functional/GoogleChartControllerCest.php+++ /dev/null@@ -1,201 +0,0 @@-<?php--/**- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- * Class GoogleChartControllerCest- */-class GoogleChartControllerCest-{-- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function accountAllBalanceChart(FunctionalTester $I)- {- $I->wantTo('see the complete balance chart of an account.');- $I->amOnPage('chart/account/1/all');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function accountBalanceChart(FunctionalTester $I)- {- $I->wantTo('see the session balance chart of an account.');- $I->amOnPage('chart/account/1/session');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function allAccountsBalanceChart(FunctionalTester $I)- {- $I->wantTo('see the chart with the balances of all accounts');- $I->amOnPage('/chart/home/account');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function allBudgetsHomeChart(FunctionalTester $I)- {- $I->wantTo('see the chart with all budgets on it');- $I->amOnPage('/chart/home/budgets');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function allCategoriesHomeChart(FunctionalTester $I)- {- $I->wantTo('see the chart with all categories on it');- $I->amOnPage('/chart/home/categories');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function billOverview(FunctionalTester $I)- {- $I->wantTo('see the chart for the history of a bill');- $I->amOnPage('/chart/bills/1');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function billsOverview(FunctionalTester $I)- {- $I->wantTo('see the chart for which bills I have yet to pay');- $I->amOnPage('/chart/home/bills');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function budgetLimitSpending(FunctionalTester $I)- {- $I->wantTo('see the chart for a budget and a repetition');- $I->amOnPage('/chart/budget/1/1');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function budgetsAndSpending(FunctionalTester $I)- {- $I->wantTo('see the chart for a budget in a specific year');- $I->amOnPage('/chart/budget/1/spending');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function categoriesAndSpending(FunctionalTester $I)- {- $year = date('Y');- $I->wantTo('see the chart for a category in a specific year');- $I->amOnPage('/chart/category/1/spending/'.$year);- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function categoriesAndSpendingInvalidYear(FunctionalTester $I)- {- $I->wantTo('see the chart for a category in an invalid year');- $I->amOnPage('/chart/category/1/spending/XXXX');- $I->seeResponseCodeIs(200);- $I->see('Invalid year');- }-- /**- * @param FunctionalTester $I- */- public function emptyBillOverview(FunctionalTester $I)- {- $I->wantTo('see the chart for the history of an empty bill');- $I->amOnPage('/chart/bills/2');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function piggyBankHistory(FunctionalTester $I)- {- $I->wantTo('see the chart for the history of a piggy bank');- $I->amOnPage('/chart/piggy_history/1');- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function yearInExp(FunctionalTester $I)- {- $I->wantTo("see this year's expenses");- $I->amOnPage('/chart/reports/income-expenses/' . date('Y'));- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function yearInExpInvalidYear(FunctionalTester $I)- {- $I->wantTo("see the year's expenses of an invalid year");- $I->amOnPage('/chart/reports/income-expenses/XXXXX');- $I->seeResponseCodeIs(200);- $I->see('Invalid year');- }-- /**- * @param FunctionalTester $I- */- public function yearInExpSum(FunctionalTester $I)- {- $I->wantTo("see this year's expenses summarized");- $I->amOnPage('/chart/reports/income-expenses-sum/' . date('Y'));- $I->seeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function yearInExpSumInvalidYear(FunctionalTester $I)- {- $I->wantTo("see the year's expenses summarized of an invalid year");- $I->amOnPage('/chart/reports/income-expenses-sum/XXXXX');- $I->seeResponseCodeIs(200);- $I->see('Invalid year');- }---}diff --git a/tests/functional/HelpControllerCest.php b/tests/functional/HelpControllerCest.phpdeleted file mode 100644index a8bb6c2d66..0000000000--- a/tests/functional/HelpControllerCest.php+++ /dev/null@@ -1,89 +0,0 @@-<?php--/**- * Class HelpControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- */-class HelpControllerCest-{-- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $I->wantTo('show help for the index page');- $I->amOnPage('/help/index');- $I->canSeeResponseCodeIs(200);- $I->see('text');-- }-- /**- * @param FunctionalTester $I- */- public function showFromCache(FunctionalTester $I)- {- $I->wantTo('show help for the index page from the cache.');- $I->amOnPage('/help/index');- $I->amOnPage('/help/index');- $I->canSeeResponseCodeIs(200);- $I->see('text');-- }-- /**- * @param FunctionalTester $I- */- public function showHelpEmptyHelpFile(FunctionalTester $I)- {- $I->wantTo('show help for a route with no text.');- $I->amOnPage('/help/transactions.doRelate');- $I->canSeeResponseCodeIs(200);- $I->see('There is no help for this route');-- }-- /**- * @param FunctionalTester $I- */- public function showHelpInvalidRoute(FunctionalTester $I)- {- $I->wantTo('show help for a non-existing route.');- $I->amOnPage('/help/indexXXXX');- $I->canSeeResponseCodeIs(200);- $I->see('There is no help for this route');-- }- //-- /**- * @param FunctionalTester $I- */- public function showHelpNoHelpFile(FunctionalTester $I)- {- $I->wantTo('show help for route that has no help file.');- $I->amOnPage('/help/help.show');- $I->canSeeResponseCodeIs(200);- $I->see('text');-- }--}diff --git a/tests/functional/HomeControllerCest.php b/tests/functional/HomeControllerCest.phpdeleted file mode 100644index 62302e91e1..0000000000--- a/tests/functional/HomeControllerCest.php+++ /dev/null@@ -1,98 +0,0 @@-<?php--use FireflyIII\Models\Preference;-/**- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- * Class HomeControllerCest- */-class HomeControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function flush(FunctionalTester $I)- {- $I->wantTo('flush the cache');- $I->amOnPage('/flush');- $I->canSeeResponseCodeIs(200);- $I->see('Firefly');- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('see the home page of Firefly');- $I->amOnPage('/');- $I->canSeeResponseCodeIs(200);- $I->see('Firefly');- }-- /**- * @param FunctionalTester $I- */- public function indexWithPrefs(FunctionalTester $I)- {- Preference::whereName('frontPageAccounts')->delete();- Preference::create(- [- 'user_id' => 1,- 'name' => 'frontPageAccounts',- 'data' => [1,2]- ]- );- $I->wantTo('see the home page of Firefly using pre-set accounts');- $I->amOnPage('/');- $I->canSeeResponseCodeIs(200);- $I->see('Firefly');- }-- /**- * @param FunctionalTester $I- */- public function rangeJump(FunctionalTester $I)- {- $I->wantTo('switch to another date range');- $I->amOnPage('/jump/6M');- $I->canSeeResponseCodeIs(200);-- }-- /**- * @param FunctionalTester $I- */- public function sessionNext(FunctionalTester $I)- {- $I->wantTo('jump to the next period');- $I->amOnPage('/next');- $I->canSeeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function sessionPrev(FunctionalTester $I)- {- $I->wantTo('jump to the previous period');- $I->amOnPage('/prev');- $I->canSeeResponseCodeIs(200);- }-}diff --git a/tests/functional/JsonControllerCest.php b/tests/functional/JsonControllerCest.phpdeleted file mode 100644index 907d6cf724..0000000000--- a/tests/functional/JsonControllerCest.php+++ /dev/null@@ -1,56 +0,0 @@-<?php--/**- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class JsonControllerCest- */-class JsonControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function categories(FunctionalTester $I)- {- $I->wantTo('See a JSON list of categories.');- $I->amOnPage('/json/categories');- $I->canSeeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function expenseAccounts(FunctionalTester $I)- {- $I->wantTo('See a JSON list of expense accounts.');- $I->amOnPage('/json/expense-accounts');- $I->canSeeResponseCodeIs(200);- }-- /**- * @param FunctionalTester $I- */- public function revenueAccounts(FunctionalTester $I)- {- $I->wantTo('See a JSON list of revenue accounts.');- $I->amOnPage('/json/revenue-accounts');- $I->canSeeResponseCodeIs(200);- }-}diff --git a/tests/functional/PiggyBankControllerCest.php b/tests/functional/PiggyBankControllerCest.phpdeleted file mode 100644index c0651993e8..0000000000--- a/tests/functional/PiggyBankControllerCest.php+++ /dev/null@@ -1,356 +0,0 @@-<?php--/**- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class PiggyBankControllerCest- */-class PiggyBankControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function add(FunctionalTester $I)- {- $I->wantTo('add money to a piggy bank');- $I->amOnPage('/piggy_banks/add/1');- $I->see('Add money to New camera');- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a piggy bank');- $I->amOnPage('/piggy_banks/create');- $I->see('Create new piggy bank');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $I->wantTo('delete a piggy bank');- $I->amOnPage('/piggy_banks/delete/1');- $I->see('Delete "New camera"');-- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $I->wantTo('destroy a piggy bank');- $I->amOnPage('/piggy_banks/delete/1');- $I->see('Delete "New camera"');- $I->submitForm('#destroy', []);- $I->see('Piggy bank "New camera" deleted.');-- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $I->wantTo('edit a piggy bank');- $I->amOnPage('/piggy_banks/edit/1');- $I->see('Edit piggy bank "New camera"');- }-- /**- * @param FunctionalTester $I- */- public function editWithTargetDate(FunctionalTester $I)- {- $I->wantTo('edit a piggy bank with a target date');- $I->amOnPage('/piggy_banks/edit/2');- $I->see('Edit piggy bank "New clothes"');- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('view all piggy banks');- $I->amOnPage('/piggy_banks');- $I->see('Piggy banks');- $I->see('New camera');- }-- /**- * @param FunctionalTester $I- */- public function postAdd(FunctionalTester $I)- {- $I->wantTo('process adding money to a piggy bank');- $I->amOnPage('/piggy_banks/add/1');- $I->see('Add money to New camera');- $I->submitForm('#add', ['amount' => 100]);- $I->see(',00 to "New camera".');- }-- /**- * @param FunctionalTester $I- */- public function postAddTooMuch(FunctionalTester $I)- {- $I->wantTo('try to add too much money to a piggy bank');- $I->amOnPage('/piggy_banks/add/1');- $I->see('Add money to New camera');- $I->submitForm('#add', ['amount' => 100000]);- $I->see(',00 to "New camera".');- }-- /**- * @param FunctionalTester $I- */- public function postRemove(FunctionalTester $I)- {- $I->wantTo('process removing money from a piggy bank');- $I->amOnPage('/piggy_banks/add/1');- $I->see('Add money to New camera');- $I->submitForm('#add', ['amount' => 100]);- $I->see(',00 to "New camera".');- $I->amOnPage('/piggy_banks/remove/1');- $I->see('Remove money from New camera');- $I->submitForm('#remove', ['amount' => 50]);- $I->see(',00 from "New camera".');- }-- /**- * @param FunctionalTester $I- */- public function postRemoveFail(FunctionalTester $I)- {- $I->wantTo('process removing too much money from a piggy bank');- $I->amOnPage('/piggy_banks/add/1');- $I->see('Add money to New camera');- $I->submitForm('#add', ['amount' => 100]);- $I->see(',00 to "New camera".');- $I->amOnPage('/piggy_banks/remove/1');- $I->see('Remove money from New camera');- $I->submitForm('#remove', ['amount' => 500]);- $I->see(',00 from "New camera".');- }--- /**- * @param FunctionalTester $I- */- public function remove(FunctionalTester $I)- {- $I->wantTo('removing money from a piggy bank');- $I->amOnPage('/piggy_banks/remove/1');- $I->see('Remove money from New camera');- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $I->wantTo('view a piggy bank');- $I->amOnPage('/piggy_banks/show/1');- $I->see('New camera');- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->wantTo('store a new piggy bank');- $I->amOnPage('/piggy_banks/create');- $I->see('Create new piggy bank');- $I->submitForm(- '#store', ['name' => 'Some new piggy bank',- 'rep_every' => 0,- 'reminder_skip' => 0,- 'remind_me' => 0,- 'order' => 3,- 'account_id' => 1, 'targetamount' => 1000]- );- $I->see('Piggy bank "Some new piggy bank" stored.');- $I->seeRecord('piggy_banks', ['name' => 'Some new piggy bank']);- }-- /**- * @param FunctionalTester $I- */- public function storeValidate(FunctionalTester $I)- {- $I->wantTo('validate a new piggy bank');- $I->amOnPage('/piggy_banks/create');- $I->see('Create new piggy bank');- $I->submitForm(- '#store', ['name' => 'Some new piggy bank validated',- 'rep_every' => 0,- 'reminder_skip' => 0,- 'remind_me' => 0,- 'order' => 3,- 'post_submit_action' => 'validate_only',- 'account_id' => 1,- 'targetamount' => 1000]- );- $I->see('OK');- $I->seeInSession('successes');- $I->dontSeeRecord('piggy_banks', ['name' => 'Some new piggy bank validated']);- }-- /**- * @param FunctionalTester $I- */- public function storeAndReturn(FunctionalTester $I)- {- $I->wantTo('store a new piggy bank and return');- $I->amOnPage('/piggy_banks/create');- $I->see('Create new piggy bank');- $I->submitForm(- '#store', ['name' => 'Some new piggy bank',- 'rep_every' => 0,- 'reminder_skip' => 0,- 'post_submit_action' => 'create_another',- 'remind_me' => 0,- 'order' => 3,- 'account_id' => 1,- 'targetamount' => 1000]- );- $I->see('Piggy bank "Some new piggy bank" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->wantTo('fail storing a new piggy bank');- $I->amOnPage('/piggy_banks/create');- $I->see('Create new piggy bank');- $I->submitForm(- '#store', ['name' => null,- 'rep_every' => 0,- 'reminder_skip' => 0,- 'remind_me' => 0,- 'order' => 3,- 'account_id' => 1,- 'post_submit_action' => 'store',- 'targetamount' => 1000]- );- $I->see('The name field is required.');- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $I->wantTo('update a piggy bank');- $I->amOnPage('/piggy_banks/edit/1');- $I->see('Edit piggy bank "New camera"');- $I->submitForm(- '#update', [- 'name' => 'Updated camera',- 'account_id' => 2,- 'targetamount' => 2000,- 'targetdate' => '',- 'reminder' => 'week',- 'post_submit_action' => 'update',- ]- );- $I->see('Piggy bank "Updated camera" updated.');--- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturn(FunctionalTester $I)- {- $I->wantTo('update a piggy bank and return');- $I->amOnPage('/piggy_banks/edit/1');- $I->see('Edit piggy bank "New camera"');- $I->submitForm(- '#update', [- 'name' => 'Updated camera',- 'account_id' => 2,- 'targetamount' => 2000,- 'targetdate' => '',- 'reminder' => 'week',- 'post_submit_action' => 'return_to_edit',- ]- );- $I->see('Piggy bank "Updated camera" updated.');--- }-- /**- * @param FunctionalTester $I- */- public function updateFail(FunctionalTester $I)- {- $I->wantTo('update a piggy bank and fail');- $I->amOnPage('/piggy_banks/edit/1');- $I->see('Edit piggy bank "New camera"');- $I->submitForm(- '#update', [- 'name' => '',- 'account_id' => 2,- 'targetamount' => 2000,- 'targetdate' => '',- 'reminder' => 'week',- 'post_submit_action' => 'update',- ]- );- $I->see('The name field is required.');- $I->seeInDatabase('piggy_banks', ['name' => 'New camera']);-- }-- /**- * @param FunctionalTester $I- */- public function updateValidateOnly(FunctionalTester $I)- {- $I->wantTo('validate a piggy bank');- $I->amOnPage('/piggy_banks/edit/1');- $I->see('Edit piggy bank "New camera"');- $I->submitForm(- '#update', [- 'name' => 'Updated camera',- 'account_id' => 2,- 'targetamount' => 2000,- 'targetdate' => '',- 'reminder' => 'week',- 'post_submit_action' => 'validate_only',- ]- );- $I->see('Updated camera');--- }--}diff --git a/tests/functional/PreferencesControllerCest.php b/tests/functional/PreferencesControllerCest.phpdeleted file mode 100644index 44080b93d6..0000000000--- a/tests/functional/PreferencesControllerCest.php+++ /dev/null@@ -1,48 +0,0 @@-<?php--/**- * Class PreferencesControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- */-class PreferencesControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('see my current set of preferences');- $I->amOnPage('/preferences');- $I->see('Preferences');- }-- /**- * @param FunctionalTester $I- */- public function postIndex(FunctionalTester $I)- {- $I->wantTo('want to update my preferences');- $I->amOnPage('/preferences');- $I->see('Preferences');- $I->submitForm('#preferences', []);- $I->see('Preferences saved!');- }-}diff --git a/tests/functional/ProfileControllerCest.php b/tests/functional/ProfileControllerCest.phpdeleted file mode 100644index 7f6c980d20..0000000000--- a/tests/functional/ProfileControllerCest.php+++ /dev/null@@ -1,150 +0,0 @@-<?php--/**- * Class ProfileControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- */-class ProfileControllerCest-{-- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function changePassword(FunctionalTester $I)- {- $I->wantTo('change my password.');- $I->amOnPage('/profile/change-password');- $I->see('[email protected]');- $I->see('Change your password');- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('see my profile options');- $I->amOnPage('/profile');- $I->see('[email protected]');- $I->see('Profile');- }-- /**- * @param FunctionalTester $I- */- public function postChangePassword(FunctionalTester $I)- {- $I->wantTo('submit a new password.');- $I->amOnPage('/profile/change-password');- $I->see('[email protected]');- $I->see('Change your password');- $I->submitForm(- '#change-password', [- 'old' => 'james',- 'new1' => 'James',- 'new2' => 'James'- ]- );- $I->see('Password changed!');- }-- /**- * @param FunctionalTester $I- */- public function postChangePasswordInvalidCurrent(FunctionalTester $I)- {- $I->wantTo('submit a new password and enter the wrong current password.');- $I->amOnPage('/profile/change-password');- $I->see('[email protected]');- $I->see('Change your password');-- $I->submitForm(- '#change-password', [- 'old' => 'Blablabla',- 'new1' => 'James',- 'new2' => 'James'- ]- );- $I->see('Invalid current password!');- }-- /**- * @param FunctionalTester $I- */- public function postChangePasswordNoMatch(FunctionalTester $I)- {- $I->wantTo('submit a new password but make a mistake in filling it in twice.');- $I->amOnPage('/profile/change-password');- $I->see('[email protected]');- $I->see('Change your password');-- $I->submitForm(- '#change-password', [- 'old' => 'james',- 'new1' => 'blabla',- 'new2' => 'bla'- ]- );- $I->see('New passwords do not match!');- }-- /**- * @param FunctionalTester $I- */- public function postChangePasswordNoNewPassword(FunctionalTester $I)- {- $I->wantTo('submit a new password and forget to fill in a new one.');- $I->amOnPage('/profile/change-password');- $I->see('[email protected]');- $I->see('Change your password');-- $I->submitForm(- '#change-password', [- 'old' => 'james',- 'new1' => '',- 'new2' => ''- ]- );- $I->see('Do fill in a password!');-- }-- /**- * @param FunctionalTester $I- */- public function postChangePasswordToSame(FunctionalTester $I)- {- $I->wantTo('submit a new password but fill in my old one twice.');- $I->amOnPage('/profile/change-password');- $I->see('[email protected]');- $I->see('Change your password');-- $I->submitForm(- '#change-password', [- 'old' => 'james',- 'new1' => 'james',- 'new2' => 'james'- ]- );- $I->see('The idea is to change your password.');- }---}diff --git a/tests/functional/RelatedControllerCest.php b/tests/functional/RelatedControllerCest.phpdeleted file mode 100644index 7e7ae49ae7..0000000000--- a/tests/functional/RelatedControllerCest.php+++ /dev/null@@ -1,120 +0,0 @@-<?php--use FireflyIII\Models\TransactionGroup;-use FireflyIII\Models\TransactionJournal;--/**- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- * Class RelatedControllerCest- */-class RelatedControllerCest-{-- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);-- }-- /**- * @param FunctionalTester $I- */- public function alreadyRelated(FunctionalTester $I)- {- $group = TransactionGroup::first();- $journal = $group->transactionjournals()->first();-- $I->wantTo('see already related transactions');- $I->amOnPage('/related/alreadyRelated/' . $journal->id);- $I->see('Big expense in ');-- }-- /**- * @param FunctionalTester $I- */- public function alreadyRelatedNoRelations(FunctionalTester $I)- {- $journal = TransactionJournal::first();-- $I->wantTo('see already related transactions for a journal without any');- $I->amOnPage('/related/alreadyRelated/' . $journal->id);- $I->see('[]');-- }-- /**- * @param FunctionalTester $I- */- public function relate(FunctionalTester $I)- {- $journal = TransactionJournal::leftJoin(- 'transaction_group_transaction_journal', 'transaction_journals.id', '=', 'transaction_group_transaction_journal.transaction_journal_id'- )- ->whereNull('transaction_group_transaction_journal.transaction_group_id')->first(['transaction_journals.*']);- $otherJournal = TransactionJournal::leftJoin(- 'transaction_group_transaction_journal', 'transaction_journals.id', '=', 'transaction_group_transaction_journal.transaction_journal_id'- )- ->whereNull('transaction_group_transaction_journal.transaction_group_id')->where(- 'transaction_journals.id', '!=', $journal->id- )->first(- ['transaction_journals.*']- );- $I->wantTo('relate two journals');- $I->sendAjaxPostRequest('/related/relate/' . $journal->id . '/' . $otherJournal->id);- $I->see('true');- }-- /**- * @param FunctionalTester $I- */- public function related(FunctionalTester $I)- {- $group = TransactionGroup::first();- $journal = $group->transactionjournals()->first();-- $I->wantTo('see the popup with already related transactions');- $I->amOnPage('/related/related/' . $journal->id);- $I->see('Big expense in ');- }-- /**- * @param FunctionalTester $I- */- public function removeRelation(FunctionalTester $I)- {- $group = TransactionGroup::first();- $one = $group->transactionjournals[0];- $two = $group->transactionjournals[1];- $I->wantTo('relate two journals');- $I->amOnPage('/related/removeRelation/' . $one->id . '/' . $two->id);- $I->see('true');-- }-- /**- * @param FunctionalTester $I- */- public function search(FunctionalTester $I)- {- $one = TransactionJournal::first();//$group = TransactionGroup::first();- //$one = $group->transactionjournals[0];-- $I->wantTo('search for a transaction to relate');-- $I->sendAjaxPostRequest('/related/search/' . $one->id . '?searchValue=expense');- $I->see('Big expense in');- }-}\ No newline at end of filediff --git a/tests/functional/ReminderControllerCest.php b/tests/functional/ReminderControllerCest.phpdeleted file mode 100644index 8a28f5657f..0000000000--- a/tests/functional/ReminderControllerCest.php+++ /dev/null@@ -1,87 +0,0 @@-<?php-use FireflyIII\Models\Reminder;--/**- * Class ReminderControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- */-class ReminderControllerCest-{-- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function act(FunctionalTester $I)- {- $reminder = Reminder::leftJoin('piggy_banks', 'piggy_banks.id', '=', 'reminders.remindersable_id')->where('piggy_banks.reminder', '!=', '')->first(- ['reminders.*']- );-- $I->wantTo('act on a reminder');- $I->amOnPage('/reminders/' . $reminder->id . '/act');- $I->see('Money for Nieuwe spullen');- }-- /**- * @param FunctionalTester $I- */- public function actOnInvalid(FunctionalTester $I)- {- $I->wantTo('act on an invalid reminder');- $I->amOnPage('/reminders/2/act');- $I->see('This reminder has an invalid class connected to it.');- }-- /**- * @param FunctionalTester $I- */- public function dismiss(FunctionalTester $I)- {- $I->wantTo('dismiss a reminder');- $I->amOnPage('/reminders/1/dismiss');- $I->see('Reminder dismissed');- }-- /**- * @param FunctionalTester $I- */- public function notNow(FunctionalTester $I)- {- $I->wantTo('ignore a reminder');- $I->amOnPage('/reminders/1/notNow');- $I->see('Reminder dismissed');- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $reminder = Reminder::leftJoin('piggy_banks', 'piggy_banks.id', '=', 'reminders.remindersable_id')->where('piggy_banks.reminder', '!=', '')->first(- ['reminders.*']- );-- $I->wantTo('see a reminder');- $I->amOnPage('/reminders/' . $reminder->id);- $I->see('A reminder about');- $I->see('your piggy bank labelled "Nieuwe spullen"');- }--}diff --git a/tests/functional/RepeatedExpenseControllerCest.php b/tests/functional/RepeatedExpenseControllerCest.phpdeleted file mode 100644index 3c00f64687..0000000000--- a/tests/functional/RepeatedExpenseControllerCest.php+++ /dev/null@@ -1,298 +0,0 @@-<?php-use Carbon\Carbon;-use FireflyIII\Models\PiggyBank;-/**- * Class RepeatedExpenseControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- */-class RepeatedExpenseControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a repeated expense');- $I->amOnPage('/repeatedexpenses/create');- $I->see('Create new repeated expense');- }-- /**- * @param FunctionalTester $I- */- public function delete(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('delete a repeated expense');- $I->amOnPage('/repeatedexpenses/delete/' . $repeatedExpense->id);- $I->see('Delete "' . $repeatedExpense->name . '"');- }-- /**- * @param FunctionalTester $I- */- public function destroy(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('destroy a repeated expense');- $I->amOnPage('/repeatedexpenses/delete/' . $repeatedExpense->id);- $I->submitForm('#destroy', []);- $I->see('Repeated expense "' . $repeatedExpense->name . '" deleted.');- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('edit a repeated expense');- $I->amOnPage('/repeatedexpenses/edit/' . $repeatedExpense->id);- $I->see('Edit repeated expense "' . $repeatedExpense->name . '"');-- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('see all repeated expenses');- $I->amOnPage('/repeatedexpenses');- $I->see('Overview');- $I->see($repeatedExpense->name);- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('view a repeated expense');- $I->amOnPage('/repeatedexpenses/show/' . $repeatedExpense->id);- $I->see($repeatedExpense->name);- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->wantTo('store a repeated expense');- $I->amOnPage('/repeatedexpenses/create');- $I->submitForm(- '#store', [- 'name' => 'TestRepeatedExpense',- 'account_id' => 1,- 'targetamount' => 1000,- 'targetdate' => Carbon::now()->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'store',- ]- );-- $I->see('Piggy bank "TestRepeatedExpense" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeValidate(FunctionalTester $I)- {- $I->wantTo('validate a repeated expense');- $I->amOnPage('/repeatedexpenses/create');- $I->submitForm(- '#store', [- 'name' => 'TestRepeatedExpenseXX',- 'account_id' => 1,- 'targetamount' => 1000,- 'targetdate' => Carbon::now()->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'validate_only',- ]- );-- $I->see('TestRepeatedExpenseXX');- $I->see('OK');- $I->seeInSession('successes');- }-- /**- * @param FunctionalTester $I- */- public function storeAndReturn(FunctionalTester $I)- {- $I->wantTo('store a repeated expense and return');- $I->amOnPage('/repeatedexpenses/create');- $I->submitForm(- '#store', [- 'name' => 'TestRepeatedExpense',- 'account_id' => 1,- 'targetamount' => 1000,- 'targetdate' => Carbon::now()->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'create_another',- ]- );-- $I->see('Piggy bank "TestRepeatedExpense" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeFail(FunctionalTester $I)- {- $I->wantTo('store a repeated expense and fail');- $I->amOnPage('/repeatedexpenses/create');- $I->submitForm(- '#store', [- 'name' => '',- 'account_id' => 1,- 'targetamount' => 1000,- 'targetdate' => Carbon::now()->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'store',- ]- );-- $I->see('Could not store repeated expense: The name field is required.');- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('update a repeated expense');- $I->amOnPage('/repeatedexpenses/edit/' . $repeatedExpense->id);- $I->submitForm(- '#update', [- 'name' => $repeatedExpense->name . '!',- 'account_id' => 2,- 'targetamount' => 1000.00,- 'targetdate' => $repeatedExpense->targetdate->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'update',- ]- );- $I->see('Repeated expense "' . $repeatedExpense->name . '!" updated.');- }-- /**- * @param FunctionalTester $I- */- public function updateValidate(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('validate an updated repeated expense');- $I->amOnPage('/repeatedexpenses/edit/' . $repeatedExpense->id);- $I->submitForm(- '#update', [- 'name' => $repeatedExpense->name . 'ABCD',- 'account_id' => 2,- 'targetamount' => 1000.00,- 'targetdate' => $repeatedExpense->targetdate->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'validate_only',- ]- );- $I->see($repeatedExpense->name . 'ABCD');- $I->see('OK');- $I->seeInSession('successes');- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturnToEdit(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('update a repeated expense and return to edit screen');- $I->amOnPage('/repeatedexpenses/edit/' . $repeatedExpense->id);- $I->submitForm(- '#update', [- 'name' => $repeatedExpense->name . '!',- 'account_id' => 2,- 'targetamount' => 1000.00,- 'targetdate' => $repeatedExpense->targetdate->format('Y-m-d'),- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'return_to_edit',- ]- );- $I->see('Repeated expense "' . $repeatedExpense->name . '!" updated.');- }-- /**- * @param FunctionalTester $I- */- public function updateFail(FunctionalTester $I)- {- $repeatedExpense = PiggyBank::where('repeats', 1)->first();- $I->wantTo('try to update a repeated expense and fail');- $I->amOnPage('/repeatedexpenses/edit/' . $repeatedExpense->id);- $I->submitForm(- '#update', [- 'name' => '',- 'account_id' => 2,- 'targetamount' => 1000.00,- 'targetdate' => '2014-12-30',- 'rep_length' => 'month',- 'rep_every' => 0,- 'rep_times' => 0,- 'remind_me' => 1,- 'reminder' => 'month',- 'post_submit_action' => 'update',- ]- );- $I->see('The name field is required.');- }-}diff --git a/tests/functional/ReportControllerCest.php b/tests/functional/ReportControllerCest.phpdeleted file mode 100644index cf47b3ba6a..0000000000--- a/tests/functional/ReportControllerCest.php+++ /dev/null@@ -1,100 +0,0 @@-<?php--/**- * Class ReportControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- *- */-class ReportControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function budget(FunctionalTester $I)- {- $I->wantTo('see a budget report');- $I->amOnPage('/reports/budget/2014/9');- $I->see('Budget report for September 2014');- }-- /**- * @param FunctionalTester $I- */- public function budgetInvalidDate(FunctionalTester $I)- {- $I->wantTo('see a budget report for an invalid date');- $I->amOnPage('/reports/budget/XXXX/XX');- $I->see('Invalid date');- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('see all possible reports');- $I->amOnPage('/reports');- $I->see('Reports');- $I->see('Monthly reports');- $I->see('Budget reports');- }-- /**- * @param FunctionalTester $I- */- public function month(FunctionalTester $I)- {- $I->wantTo('see a monthly report');- $I->amOnPage('/reports/2014/9');- $I->see('Report for September 2014');- }-- /**- * @param FunctionalTester $I- */- public function monthInvalidDate(FunctionalTester $I)- {- $I->wantTo('see a monthly report for an invalid month');- $I->amOnPage('/reports/XXXX/XX');- $I->see('Invalid date');- }-- /**- * @param FunctionalTester $I- */- public function year(FunctionalTester $I)- {- $I->wantTo('see a yearly report');- $I->amOnPage('/reports/2014');- $I->see('Income vs. expenses');- $I->see('Account balance');- }-- /**- * @param FunctionalTester $I- */- public function yearInvalidDate(FunctionalTester $I)- {- $I->wantTo('see a yearly report for an invalid year');- $I->amOnPage('/reports/XXXX');- $I->see('Invalid date');- }--}diff --git a/tests/functional/SearchControllerCest.php b/tests/functional/SearchControllerCest.phpdeleted file mode 100644index 038d5bcd05..0000000000--- a/tests/functional/SearchControllerCest.php+++ /dev/null@@ -1,45 +0,0 @@-<?php--/**- * Class SearchControllerCest- */-class SearchControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('search for "salary"');- $I->amOnPage('/search?q=salary');- $I->see('Transactions');- $I->see('Results for "salary"');-- }-- /**- * @param FunctionalTester $I- */- public function indexNoQuery(FunctionalTester $I)- {- $I->wantTo('Search for empty string');- $I->amOnPage('/search?q=');- $I->see('Search for ""');-- }-}diff --git a/tests/functional/TransactionControllerCest.php b/tests/functional/TransactionControllerCest.phpdeleted file mode 100644index 0839032a12..0000000000--- a/tests/functional/TransactionControllerCest.php+++ /dev/null@@ -1,416 +0,0 @@-<?php--use FireflyIII\Models\TransactionType;-use FireflyIII\Models\TransactionJournal;--/**- * Class TransactionControllerCest- */-class TransactionControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- }-- /**- * @param FunctionalTester $I- */- public function create(FunctionalTester $I)- {- $I->wantTo('create a transaction');- $I->amOnPage('/transactions/create/withdrawal?account_id=1');- $I->see('Add a new withdrawal');- }-- /**- * @param FunctionalTester $I- */- public function deleteWithdrawal(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Withdrawal')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();- $I->wantTo('delete a transaction');- $I->amOnPage('/transaction/delete/' . $journal->id);- $I->see('Delete withdrawal "' . $journal->description . '"');- }-- /**- * @param FunctionalTester $I- */- public function destroyDeposit(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Deposit')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();- $I->wantTo('destroy a deposit');- $I->amOnPage('/transaction/delete/' . $journal->id);- $I->submitForm('#destroy', []);- $I->see('Transaction "' . $journal->description . '" destroyed.');-- }-- /**- * @param FunctionalTester $I- */- public function destroyTransfer(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Transfer')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('destroy a transfer');-- $I->amOnPage('/transaction/delete/' . $journal->id);- $I->submitForm('#destroy', []);- $I->see('Transaction "' . $journal->description . '" destroyed.');-- }-- /**- * @param FunctionalTester $I- */- public function destroyTransferWithEvent(FunctionalTester $I)- {- // get withdrawal transaction type id:- $row = DB::table('piggy_bank_events')->whereNotNull('transaction_journal_id')->first();- $journalId = $row->transaction_journal_id;- $journal = TransactionJournal::find($journalId);-- $I->wantTo('destroy a transfer connected to a piggy bank');-- $I->amOnPage('/transaction/delete/' . $journal->id);- $I->submitForm('#destroy', []);- $I->see('Transaction "' . $journal->description . '" destroyed.');-- }-- /**- * @param FunctionalTester $I- */- public function destroyWithdrawal(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Withdrawal')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('destroy a withdrawal');- $I->amOnPage('/transaction/delete/' . $journal->id);- $I->submitForm('#destroy', []);- $I->see('Transaction "' . $journal->description . '" destroyed.');-- }-- /**- * @param FunctionalTester $I- */- public function edit(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Transfer')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('edit a transaction');- $I->amOnPage('/transaction/edit/' . $journal->id);- $I->see('Edit transfer "' . $journal->description . '"');- }-- /**- * @param FunctionalTester $I- */- public function index(FunctionalTester $I)- {- $I->wantTo('see all withdrawals');- $I->amOnPage('/transactions/withdrawal');- $I->see('Expenses');- }-- /**- * @param FunctionalTester $I- */- public function indexExpenses(FunctionalTester $I)- {- $I->wantTo('see all expenses');- $I->amOnPage('/transactions/deposit');- $I->see('Revenue, income and deposits');- }-- /**- * @param FunctionalTester $I- */- public function indexTransfers(FunctionalTester $I)- {- $I->wantTo('see all transfers');- $I->amOnPage('/transactions/transfers');- $I->see('Transfers');- }-- /**- * @param FunctionalTester $I- */- public function show(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Withdrawal')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('see a transaction');- $I->amOnPage('/transaction/show/' . $journal->id);- $I->see($journal->description);- $I->see(intval($journal->getAmount()));- }-- /**- * @param FunctionalTester $I- */- public function showGroupedJournal(FunctionalTester $I)- {- $groupRow = DB::table('transaction_group_transaction_journal')->select('transaction_journal_id')->first(['transaction_journal_id']);-- $id = $groupRow->transaction_journal_id;-- // get a grouped journal:- $journal = TransactionJournal::find($id);--- $I->wantTo('see a grouped transaction');- $I->amOnPage('/transaction/show/' . $journal->id);- $I->see($journal->description);- }-- /**- * @param FunctionalTester $I- */- public function store(FunctionalTester $I)- {- $I->wantTo('store a transaction');- $I->amOnPage('/transactions/create/withdrawal');- $I->submitForm(- '#store', [- 'reminder' => '',- 'description' => 'Test',- 'account_id' => 1,- 'expense_account' => 'Zomaar',- 'amount' => 100,- 'date' => '2014-12-30',- 'budget_id' => 3,- 'category' => 'Categorrr',- 'post_submit_action' => 'store'- ]- );- $I->see('Transaction "Test" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeAndFail(FunctionalTester $I)- {- $I->wantTo('store a transaction and fail');- $I->amOnPage('/transactions/create/withdrawal');- $I->submitForm(- '#store', [- 'reminder' => '',- 'description' => '',- 'account_id' => 1,- 'expense_account' => 'Zomaar',- 'amount' => 100,- 'date' => '2014-12-30',- 'budget_id' => 3,- 'category' => 'Categorrr',- 'post_submit_action' => 'store'- ]- );- $I->see('Could not store transaction: The description field is required.');- }-- /**- * @param FunctionalTester $I- */- public function storeAndReturn(FunctionalTester $I)- {- $I->wantTo('store a transaction');- $I->amOnPage('/transactions/create/withdrawal');- $I->submitForm(- '#store', [- 'reminder' => '',- 'description' => 'Test',- 'account_id' => 1,- 'expense_account' => 'Zomaar',- 'amount' => 100,- 'date' => '2014-12-30',- 'budget_id' => 3,- 'category' => 'Categorrr',- 'post_submit_action' => 'create_another'- ]- );- $I->see('Transaction "Test" stored.');- }-- /**- * @param FunctionalTester $I- */- public function storeValidate(FunctionalTester $I)- {- $I->wantTo('validate a transaction');- $I->amOnPage('/transactions/create/withdrawal');- $I->submitForm(- '#store', [- 'reminder' => '',- 'description' => 'TestValidateMe',- 'account_id' => 1,- 'expense_account' => 'Zomaar',- 'amount' => 100,- 'date' => '2014-12-30',- 'budget_id' => 3,- 'category' => 'CategorrXXXXr',- 'post_submit_action' => 'validate_only'- ]- );- $I->see('OK');- $I->seeInSession('successes');- $I->dontSeeRecord('transaction_journals', ['description' => 'TestValidateMe']);- }-- /**- * @param FunctionalTester $I- */- public function update(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Deposit')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('update a transaction');- $I->amOnPage('/transaction/edit/' . $journal->id);- $I->see($journal->description);- $I->submitForm(- '#update', [- 'description' => $journal->description . '!',- 'account_id' => 1,- 'expense_account' => 'Portaal',- 'amount' => 500,- 'date' => $journal->date->format('Y-m-d'),- 'budget_id' => is_null($journal->budgets()->first()) ? 0 : $journal->budgets()->first()->id,- 'category' => is_null($journal->categories()->first()) ? '' : $journal->categories()->first()->id,- 'post_submit_action' => 'update'- ]- );- $I->see($journal->description . '!');- }-- /**- * @param FunctionalTester $I- */- public function updateAndFail(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Deposit')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('update a transaction and fail');- $I->amOnPage('/transaction/edit/' . $journal->id);- $I->see($journal->description);- $I->submitForm(- '#update', [- 'description' => '',- 'account_id' => 1,- 'expense_account' => 'Portaal',- 'amount' => 500,- 'date' => '2014-01-01',- 'budget_id' => 2,- 'category' => 'House',- 'post_submit_action' => 'update'- ]- );- $I->see('Could not update transaction: The description field is required.');- }-- /**- * @param FunctionalTester $I- */- public function updateAndReturn(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Deposit')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();- $I->wantTo('update a transaction and return to the edit screen');- $I->amOnPage('/transaction/edit/' . $journal->id);- $I->see($journal->description);- $I->submitForm(- '#update', [- 'description' => $journal->description . '!',- 'account_id' => 1,- 'expense_account' => 'Portaal',- 'amount' => 500,- 'date' => $journal->date->format('Y-m-d'),- 'budget_id' => is_null($journal->budgets()->first()) ? 0 : $journal->budgets()->first()->id,- 'category' => is_null($journal->categories()->first()) ? '' : $journal->categories()->first()->id,- 'post_submit_action' => 'return_to_edit'- ]- );- $I->see($journal->description . '!');- }-- /**- * @param FunctionalTester $I- */- public function updateValidate(FunctionalTester $I)- {- // get withdrawal transaction type id:- $type = TransactionType::whereType('Deposit')->first();-- // get a journal- $journal = TransactionJournal::where('transaction_type_id', $type->id)->first();-- $I->wantTo('validate an updated transaction');- $I->amOnPage('/transaction/edit/' . $journal->id);- $I->see($journal->description);- $I->submitForm(- '#update', [- 'description' => $journal->description . 'XYZ',- 'account_id' => 1,- 'expense_account' => 'Portaal',- 'amount' => 500,- 'date' => $journal->date->format('Y-m-d'),- 'budget_id' => is_null($journal->budgets()->first()) ? 0 : $journal->budgets()->first()->id,- 'category' => is_null($journal->categories()->first()) ? '' : $journal->categories()->first()->id,- 'post_submit_action' => 'validate_only'- ]- );- $I->see($journal->description . 'XYZ');- $I->see('OK');- $I->seeInSession('successes');- }---}diff --git a/tests/functional/UserControllerCest.php b/tests/functional/UserControllerCest.phpdeleted file mode 100644index a9a5141632..0000000000--- a/tests/functional/UserControllerCest.php+++ /dev/null@@ -1,150 +0,0 @@-<?php--/**- * Class UserControllerCest- *- * @SuppressWarnings("CamelCase")- * @SuppressWarnings("short")- */-class UserControllerCest-{- /**- * @param FunctionalTester $I- */- public function _after(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function _before(FunctionalTester $I)- {- }-- /**- * @param FunctionalTester $I- */- public function login(FunctionalTester $I)- {- $I->wantTo('login');- $I->amOnPage('/login');- $I->see('Sign In');- $I->submitForm('#login', ['email' => '[email protected]', 'password' => 'functional']);- $I->see('[email protected]');-- }-- /**- * @param FunctionalTester $I- */- public function loginFails(FunctionalTester $I)- {- $I->wantTo('fail the login');- $I->amOnPage('/login');- $I->see('Sign In');- $I->submitForm('#login', ['email' => '[email protected]', 'password' => 'wrong']);- $I->see('No good');-- }-- /**- * @param FunctionalTester $I- */- public function logout(FunctionalTester $I)- {- $I->amLoggedAs(['email' => '[email protected]', 'password' => 'james']);- $I->wantTo('logout');- $I->amOnPage('/');- $I->click('Logout');- $I->see('Firefly III — Sign In');- }-- /**- * @param FunctionalTester $I- */- public function postRegister(FunctionalTester $I)- {- $I->wantTo('post-register a new account');- $I->amOnPage('/register');- $I->submitForm('#register', ['email' => '[email protected]']);- $I->see('You\'re about to get an e-mail. Please follow its instructions.');- $I->seeRecord('users', ['email' => '[email protected]']);- }-- /**- * @param FunctionalTester $I- */- public function postRegisterFail(FunctionalTester $I)- {- $I->wantTo('post-register a new account and fail');- $I->amOnPage('/register');- $I->submitForm('#register', ['email' => 'XXxxxxx']);- $I->see('Input invalid, please try again: The email must be a valid email address.');- $I->dontseeRecord('users', ['email' => 'XXxxxxx']);- }-- /**- * @param FunctionalTester $I- */- public function postRemindme(FunctionalTester $I)- {- $I->wantTo('get a password reminder');- $I->amOnRoute('remindMe');- $I->submitForm('#remindMe', ['email' => '[email protected]']);- $I->see('You\'re about to get an e-mail.');- }-- /**- * @param FunctionalTester $I- */- public function postRemindmeFail(FunctionalTester $I)- {- $I->wantTo('get a password reminder and fail');- $I->amOnRoute('remindMe');- $I->submitForm('#remindMe', ['email' => 'abcdee']);- $I->see('No good!');- }-- /**- * @param FunctionalTester $I- */- public function register(FunctionalTester $I)- {- $I->wantTo('register a new account');- $I->amOnRoute('register');--- }-- /**- * @param FunctionalTester $I- */- public function remindMe(FunctionalTester $I)- {- $I->wantTo('reminded of my password');- $I->amOnRoute('remindMe');- $I->see('Firefly III — Reset your password');- }-- /**- * @param FunctionalTester $I- */- public function resetFail(FunctionalTester $I)- {- $I->wantTo('reset my password and fail');- $I->amOnPage('/reset/123');- $I->see('No reset code found!');- }-- /**- * @param FunctionalTester $I- */- public function reset(FunctionalTester $I)- {- $I->wantTo('reset my password');- $I->amOnPage('/reset/okokokokokokokokokokokokokokokok');- $I->see('You\'re about to get an e-mail.');- }--}diff --git a/tests/functional/_bootstrap.php b/tests/functional/_bootstrap.phpdeleted file mode 100644index e489e45b9e..0000000000--- a/tests/functional/_bootstrap.php+++ /dev/null@@ -1,8 +0,0 @@-<?php-$db = realpath(__DIR__ . '/../_data') . '/db.sqlite';-if (!file_exists($db)) {- $out = [];- exec('touch ' . $db);- exec('php artisan migrate --seed --env=testing', $out);- exec('sqlite3 tests/_data/db.sqlite .dump > tests/_data/dump.sql', $out);-}diff --git a/tests/unit.suite.yml b/tests/unit.suite.ymldeleted file mode 100644index 4ffbf160ec..0000000000--- a/tests/unit.suite.yml+++ /dev/null@@ -1,6 +0,0 @@-# Codeception Test Suite Configuration--# suite for unit (internal) tests.-class_name: UnitTester-modules:- enabled: [Asserts, UnitHelper]diff --git a/tests/unit/AccountTest.php b/tests/unit/AccountTest.phpdeleted file mode 100644index 16145d8932..0000000000--- a/tests/unit/AccountTest.php+++ /dev/null@@ -1,40 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class AccountTest- */-class AccountTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- // tests-- public function testAccountMeta()- {- $account = f::create('Account');- $newMeta = $account->updateMeta('field', 'value');- $this->assertInstanceOf('AccountMeta', $newMeta);- $secondMeta = $account->updateMeta('field', 'newValue');- $this->assertEquals($newMeta->id, $secondMeta->id);- $this->assertEquals($newMeta->data, 'value');- $this->assertEquals($secondMeta->data, 'newValue');- }-- public function testAccountUser()- {- $account = f::create('Account');- $this->assertInstanceOf('Account', $account);- $this->assertInstanceOf('User', $account->user);- }--}diff --git a/tests/unit/AccountTypeTest.php b/tests/unit/AccountTypeTest.phpdeleted file mode 100644index 94aede8b6a..0000000000--- a/tests/unit/AccountTypeTest.php+++ /dev/null@@ -1,27 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class AccountTypeTest- */-class AccountTypeTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- // tests- public function testAccounts()- {- $account = f::create('Account');- $this->assertCount(1, $account->accountType()->first()->accounts()->get());- }--}diff --git a/tests/unit/BudgetTest.php b/tests/unit/BudgetTest.phpdeleted file mode 100644index 88321ee974..0000000000--- a/tests/unit/BudgetTest.php+++ /dev/null@@ -1,26 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class BudgetTest- */-class BudgetTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testUser()- {- $budget = f::create('Budget');- $this->assertInstanceOf('User', $budget->user);-- }-}diff --git a/tests/unit/PiggyBankRepetitionTest.php b/tests/unit/PiggyBankRepetitionTest.phpdeleted file mode 100644index 3bf35313e6..0000000000--- a/tests/unit/PiggyBankRepetitionTest.php+++ /dev/null@@ -1,29 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class PiggyBankRepetitionTest- */-class PiggyBankRepetitionTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testPiggyBankRepetitionScope()- {- $repetition = f::create('PiggyBankRepetition');- $start = clone $repetition->startdate;- $target = clone $repetition->targetdate;-- $this->assertCount(1, PiggyBankRepetition::starts($start)->get());- $this->assertCount(1, PiggyBankRepetition::targets($target)->get());- }-}diff --git a/tests/unit/PiggyBankTest.php b/tests/unit/PiggyBankTest.phpdeleted file mode 100644index efe7210cc0..0000000000--- a/tests/unit/PiggyBankTest.php+++ /dev/null@@ -1,27 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class PiggyBankTest- */-class PiggyBankTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testPiggyBankReminders()- {- $reminder = f::create('Reminder');- $piggyBank = f::create('PiggyBank');- $piggyBank->reminders()->save($reminder);- $this->assertCount(1, $piggyBank->reminders()->get());- }-}diff --git a/tests/unit/ReminderTest.php b/tests/unit/ReminderTest.phpdeleted file mode 100644index 6a792ff9c4..0000000000--- a/tests/unit/ReminderTest.php+++ /dev/null@@ -1,38 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class ReminderTest- */-class ReminderTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testDateIs()- {- $reminder = f::create('Reminder');- $start = clone $reminder->startdate;- $end = clone $reminder->enddate;- $this->assertCount(1, Reminder::dateIs($start, $end)->get());-- }-- public function testUser()- {- $user = f::create('User');- $reminder = f::create('Reminder');- $reminder->user_id = $user->id;- $reminder->save();-- $this->assertEquals($reminder->user->id, $user->id);- }-}diff --git a/tests/unit/TransactionGroupTest.php b/tests/unit/TransactionGroupTest.phpdeleted file mode 100644index 9c3b72272b..0000000000--- a/tests/unit/TransactionGroupTest.php+++ /dev/null@@ -1,25 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class TransactionGroupTest- */-class TransactionGroupTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testUser()- {- $group = f::create('TransactionGroup');- $this->assertEquals($group->user_id, $group->user->id);- }-}diff --git a/tests/unit/TransactionJournalTest.php b/tests/unit/TransactionJournalTest.phpdeleted file mode 100644index 863c87cff8..0000000000--- a/tests/unit/TransactionJournalTest.php+++ /dev/null@@ -1,33 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class TransactionJournalTest- */-class TransactionJournalTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testMorethan()- {- $journal = f::create('TransactionJournal');- $transaction = f::create('Transaction');- $other = clone $transaction;- $journal->transactions()->save($transaction);- $journal->transactions()->save($other);-- $amount = floatval($transaction->amount);- $amount--;-- $this->assertCount(1, TransactionJournal::moreThan($amount)->get());- }-}diff --git a/tests/unit/TransactionTest.php b/tests/unit/TransactionTest.phpdeleted file mode 100644index f154d5130e..0000000000--- a/tests/unit/TransactionTest.php+++ /dev/null@@ -1,67 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class TransactionTest- */-class TransactionTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- public function testAccount()- {- $transaction = f::create('Transaction');-- $this->assertCount(1, Transaction::accountIs($transaction->account)->get());- }-- public function testDateAfter()- {- $transaction = f::create('Transaction');- $date = clone $transaction->transactionJournal->date;- $date->subDay();-- $this->assertCount(1, Transaction::after($date)->get());- }-- public function testDateBefore()- {- $transaction = f::create('Transaction');- $date = clone $transaction->transactionJournal->date;- $date->addDay();-- $this->assertCount(1, Transaction::before($date)->get());- }-- public function testLessThan()- {- $transaction = f::create('Transaction');- $amount = floatval($transaction->amount);- $amount++;- $this->assertCount(1, Transaction::lessThan($amount)->get());- }-- public function testMoreThan()- {- $transaction = f::create('Transaction');- $amount = floatval($transaction->amount);- $amount--;- $this->assertCount(1, Transaction::moreThan($amount)->get());- }-- public function testTransactionTypes()- {- $transaction = f::create('Transaction');- $type = $transaction->transactionJournal->transactionType->type;- $this->assertCount(1, Transaction::transactionTypes([$type])->get());- }-}diff --git a/tests/unit/TransactionTypeTest.php b/tests/unit/TransactionTypeTest.phpdeleted file mode 100644index d2b4033d69..0000000000--- a/tests/unit/TransactionTypeTest.php+++ /dev/null@@ -1,30 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class TransactionTypeTest- */-class TransactionTypeTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- // tests-- public function testJournals()- {- $journal = f::create('TransactionJournal');- $type = $journal->transactionType;- $this->assertCount(1, $type->transactionJournals()->get());- }---}diff --git a/tests/unit/UserTest.php b/tests/unit/UserTest.phpdeleted file mode 100644index 87b4c9d69e..0000000000--- a/tests/unit/UserTest.php+++ /dev/null@@ -1,36 +0,0 @@-<?php-use League\FactoryMuffin\Facade as f;--/**- * Class AccountTest- */-class UserTest extends TestCase-{-- public function setUp()- {- parent::setUp();- }-- public function tearDown()- {- parent::tearDown();- }-- // tests-- public function testPreference()- {- $pref = f::create('Preference');- $this->assertEquals($pref->user_id, $pref->user->id);- $this->assertCount(1, $pref->user->preferences()->get());- }-- public function testReminder()- {- $reminder = f::create('Reminder');- $this->assertEquals($reminder->user_id, $reminder->user->id);- $this->assertCount(1, $reminder->user->reminders()->get());- }--}diff --git a/tests/unit/_bootstrap.php b/tests/unit/_bootstrap.phpdeleted file mode 100644index 8a88555806..0000000000--- a/tests/unit/_bootstrap.php+++ /dev/null@@ -1,2 +0,0 @@-<?php-// Here you can initialize variables that will be available to your tests