Commit a63f0056 by Angello Torres

Tutorual finalizado - No carga el enlace de nuevo usuario

parent 81887d95
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
@section('content') @section('content')
<h1>{{ $title }}</h1> <h1>{{ $title }}</h1>
<ul> <ul>
@forelse ($users as $user) @forelse ($users as $user)
<li> <li>
......
...@@ -38,21 +38,25 @@ class pruebaTest extends TestCase ...@@ -38,21 +38,25 @@ class pruebaTest extends TestCase
*/ */
/** @test */ /** @test */
function it_create_new_user(){ function it_creates_a_new_user()
{
//$this->withoutExceptionHandling();
$this->post('/usuarios/', [ $this->post('/usuarios/', [
'name' => 'Duilio', 'name' => 'Usuario Prueba',
'email' => 'duilio@styde.net', 'email' => 'user.prueba@mail.es',
'password' => '123456', 'password' => '123456'
]);// ->assertSee('Procesando información ...'); ])->assertRedirect('/usuarios');
$this->assertDatabaseHas('users', [ $this->assertCredentials([
'name' => 'Duilio Palacios', 'name' => 'Usuario Prueba',
'email' => 'duilio@sryde.net', 'email' => 'user.prueba@mail.es',
'password' => '123456',
]); ]);
} }
/** @test */ /** @test */
function the_name_is_required(){ /* function the_name_is_required(){
// $this->withoutExceptionHandling(); // $this->withoutExceptionHandling();
$this->post('usuarios', [ $this->post('usuarios', [
...@@ -64,5 +68,5 @@ class pruebaTest extends TestCase ...@@ -64,5 +68,5 @@ class pruebaTest extends TestCase
$this->assertDatabaseMissing('users', [ $this->assertDatabaseMissing('users', [
'email'=> 'duilio@styde.net', 'email'=> 'duilio@styde.net',
]); ]);
} } */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment