Skip to content

Firefly III: a personal finances manager

Example test should point to /login

James Cole3b9b74b5ea33
diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php
index df6e4a591d..f31e495ca3 100644
--- a/tests/Feature/ExampleTest.php
+++ b/tests/Feature/ExampleTest.php
@@ -1,39 +1,12 @@
<?php
-/**
- * ExampleTest.php
- * Copyright (c) 2017 [email protected]
- * This software may be modified and distributed under the terms of the
- * Creative Commons Attribution-ShareAlike 4.0 International License.
- *
- * See the LICENSE file for details.
- */
-
-declare(strict_types=1);
-
namespace Tests\Feature;
use Tests\TestCase;
+use Illuminate\Foundation\Testing\RefreshDatabase;
-/**
- * Class ExampleTest
- *
- * @package Tests\Feature
- */
class ExampleTest extends TestCase
{
- /**
- * A basic test example.
- *
- * @return void
- */
- public function testAnotherBasicTest()
- {
- $response = $this->get('/');
-
- $response->assertStatus(302);
- }
-
/**
* A basic test example.
*
@@ -41,7 +14,7 @@ class ExampleTest extends TestCase
*/
public function testBasicTest()
{
- $response = $this->get('/login');
+ $response = $this->get('/');
$response->assertStatus(200);
}
diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php
index b55d6c83f1..e9fe19c664 100644
--- a/tests/Unit/ExampleTest.php
+++ b/tests/Unit/ExampleTest.php
@@ -1,38 +1,10 @@
<?php
-
-/**
- * ExampleTest.php
- * Copyright (c) 2017 [email protected]
- * This software may be modified and distributed under the terms of the
- * Creative Commons Attribution-ShareAlike 4.0 International License.
- *
- * See the LICENSE file for details.
- */
-
-declare(strict_types=1);
-
-/**
- * ExampleTest.php
- * Copyright (c) 2017 [email protected]
- * This software may be modified and distributed under the terms of the
- * Creative Commons Attribution-ShareAlike 4.0 International License.
- *
- * See the LICENSE file for details.
- */
-
namespace Tests\Unit;
use Tests\TestCase;
+use Illuminate\Foundation\Testing\RefreshDatabase;
-/**
- * Class ExampleTest
- *
- * @package Tests\Unit
- * @SuppressWarnings(PHPMD.TooManyPublicMethods)
- * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
- * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
- */
class ExampleTest extends TestCase
{
/**