Compartmentalised all tests.

This commit is contained in:
James Cole
2015-05-23 19:41:54 +02:00
parent 422f429725
commit 1ec11e3e2e
27 changed files with 496 additions and 20 deletions

View File

@@ -34,6 +34,9 @@ class ProfileControllerTest extends TestCase
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::changePassword
*/
public function testChangePassword()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -43,6 +46,9 @@ class ProfileControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::deleteAccount
*/
public function testDeleteAccount()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -52,6 +58,9 @@ class ProfileControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::index
*/
public function testIndex()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -61,6 +70,9 @@ class ProfileControllerTest extends TestCase
$this->assertResponseOk();
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
*/
public function testPostChangePassword()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -83,6 +95,9 @@ class ProfileControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
*/
public function testPostChangePasswordInvalidCurrent()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -105,6 +120,9 @@ class ProfileControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postChangePassword
*/
public function testPostChangePasswordNoNewPassword()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -128,6 +146,9 @@ class ProfileControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postDeleteAccount
*/
public function testPostDeleteAccount()
{
$user = FactoryMuffin::create('FireflyIII\User');
@@ -147,6 +168,9 @@ class ProfileControllerTest extends TestCase
}
/**
* @covers FireflyIII\Http\Controllers\ProfileController::postDeleteAccount
*/
public function testPostDeleteAccountInvalidPassword()
{
$user = FactoryMuffin::create('FireflyIII\User');