Removed everything related to unit tests. Can restore later.

This commit is contained in:
James Cole
2015-07-02 08:51:53 +02:00
parent ec349b31c7
commit 58af3dc6ea
58 changed files with 0 additions and 12865 deletions

View File

@@ -1,78 +0,0 @@
<?php
use League\FactoryMuffin\Facade as FactoryMuffin;
/**
* Class AuthControllerTest
*/
class AuthControllerTest extends TestCase
{
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
public function setUp()
{
parent::setUp();
//FactoryMuffin::create('FireflyIII\User');
}
/**
* This method is called before the first test of this test class is run.
*
* @since Method available since Release 3.4.0
*/
public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
public function tearDown()
{
parent::tearDown();
}
/**
* @covers FireflyIII\Http\Controllers\Auth\AuthController::postRegister
* @covers FireflyIII\Http\Controllers\Auth\AuthController::validator
* @covers FireflyIII\Http\Controllers\Auth\AuthController::create
*/
public function testPostRegister()
{
$data = [
'email' => 'test@example.com',
'password' => 'onetwothree',
'password_confirmation' => 'onetwothree',
'_token' => 'replaceMe'
];
$this->call('POST', '/auth/register', $data);
$this->assertResponseStatus(302);
$this->assertSessionHas('success');
}
/**
* @covers FireflyIII\Http\Controllers\Auth\AuthController::postRegister
* @covers FireflyIII\Http\Controllers\Auth\AuthController::validator
* @covers FireflyIII\Http\Controllers\Auth\AuthController::create
*/
public function testPostRegisterFails()
{
$data = [
'email' => 'test@example.com',
'password' => 'onetwothree',
'password_confirmation' => 'onetwofour',
'_token' => 'replaceMe'
];
$this->call('POST', '/auth/register', $data);
$this->assertResponseStatus(302);
}
}