mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
expand tests
This commit is contained in:
@@ -13,43 +13,6 @@
|
||||
class AuthControllerTest extends TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::getLogin
|
||||
*/
|
||||
public function testGetLogin()
|
||||
{
|
||||
$this->call('GET', '/login');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::getLogout
|
||||
*/
|
||||
public function testGetLogout()
|
||||
{
|
||||
$this->be($this->user());
|
||||
$this->call('GET', '/logout');
|
||||
$this->assertResponseStatus(302);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::getRegister
|
||||
*/
|
||||
public function testGetRegister()
|
||||
{
|
||||
$this->call('GET', '/register');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::login
|
||||
*/
|
||||
public function testLogin()
|
||||
{
|
||||
$this->call('GET', '/login');
|
||||
$this->assertResponseStatus(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::logout
|
||||
*/
|
||||
@@ -62,14 +25,16 @@ class AuthControllerTest extends TestCase
|
||||
// index should now redirect:
|
||||
$this->call('GET', '/');
|
||||
$this->assertResponseStatus(302);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::postLogin
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::login
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::__construct
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::sendFailedLoginResponse
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::getFailedLoginMessage
|
||||
*
|
||||
*/
|
||||
public function testPostLogin()
|
||||
public function testLogin()
|
||||
{
|
||||
$args = [
|
||||
'email' => 'thegrumpydictator@gmail.com',
|
||||
@@ -86,9 +51,13 @@ class AuthControllerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::postRegister
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::register
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::create
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::isBlockedDomain
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::getBlockedDomains
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::validator
|
||||
*/
|
||||
public function testPostRegister()
|
||||
public function testRegister()
|
||||
{
|
||||
$args = [
|
||||
'email' => 'thegrumpydictator+test@gmail.com',
|
||||
@@ -101,9 +70,9 @@ class AuthControllerTest extends TestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::register
|
||||
* @covers FireflyIII\Http\Controllers\Auth\AuthController::showRegistrationForm
|
||||
*/
|
||||
public function testRegister()
|
||||
public function testShowRegistrationForm()
|
||||
{
|
||||
$this->call('GET', '/register');
|
||||
$this->assertResponseStatus(200);
|
||||
|
Reference in New Issue
Block a user