Example test should point to /login

This commit is contained in:
James Cole 2017-09-09 22:11:33 +02:00
parent 418a6ab5ad
commit 3b9b74b5ea
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 3 additions and 58 deletions

View File

@ -1,39 +1,12 @@
<?php
/**
* ExampleTest.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
* 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);
}

View File

@ -1,38 +1,10 @@
<?php
/**
* ExampleTest.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
* 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 thegrumpydictator@gmail.com
* 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
{
/**