'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 */ public function testPostRegisterFails() { $data = [ 'email' => 'test@example.com', 'password' => 'onetwothree', 'password_confirmation' => 'onetwofour', '_token' => 'replaceMe' ]; $this->call('POST', '/auth/register', $data); $this->assertResponseStatus(302); } }