expand tests

This commit is contained in:
James Cole
2016-02-04 07:30:48 +01:00
parent fb119cc208
commit 3690a53dc9
28 changed files with 432 additions and 325 deletions

View File

@@ -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);