Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Some new tests. Hope to have fixed the problem in hhvm.
James Coleb6441f399604
diff --git a/app/controllers/SearchController.php b/app/controllers/SearchController.phpindex 8b4cdc35fa..ec5aa98d39 100644--- a/app/controllers/SearchController.php+++ b/app/controllers/SearchController.php@@ -1,6 +1,6 @@<?php-class SearchController+class SearchController extends BaseController{diff --git a/app/routes.php b/app/routes.phpindex bf81fc53cb..7fab71dca2 100644--- a/app/routes.php+++ b/app/routes.php@@ -159,6 +159,9 @@ Route::group(['before' => 'auth'], function () {// report controller:Route::get('/reports',['uses' => 'ReportController@index','as' => 'reports.index']);+ // search controller:+ Route::get('/search',['uses' => 'SearchController@index','as' => 'search']);+// transaction controller:Route::get('/transactions/create/{what}', ['uses' => 'TransactionController@create', 'as' => 'transactions.create'])->where(['what' => 'withdrawal|deposit|transfer']);Route::get('/transaction/show/{tj}',['uses' => 'TransactionController@show','as' => 'transactions.show']);diff --git a/app/tests/controllers/ProfileControllerTest.php b/app/tests/controllers/ProfileControllerTest.phpindex 2ac2fa526b..0688a914a1 100644--- a/app/tests/controllers/ProfileControllerTest.php+++ b/app/tests/controllers/ProfileControllerTest.php@@ -92,7 +92,7 @@ class ProfileControllerTest extends TestCase$this->_user->shouldReceive('getAttribute')->with('email')->andReturn('some@email');$this->_user->shouldReceive('getAttribute')->with('password')->andReturn('Blablabla');- $this->action('POST', 'ProfileController@postChangePassword');+ $this->action('POST', 'ProfileController@postChangePassword',['old' => '']);$this->assertResponseOk();}diff --git a/app/tests/controllers/SearchControllerTest.php b/app/tests/controllers/SearchControllerTest.phpnew file mode 100644index 0000000000..f7e639a618--- /dev/null+++ b/app/tests/controllers/SearchControllerTest.php@@ -0,0 +1,27 @@+<?php+use Mockery as m;++/**+ * Class SearchControllerTest+ */+class SearchControllerTest extends TestCase+{++ public function setUp()+ {+ parent::setUp();++ }++ public function tearDown()+ {+ m::close();+ }++ public function testIndex()+ {+ $this->action('GET', 'SearchController@index');+ $this->assertResponseOk();+ }++}\ No newline at end of file