Commit a63f0056 by Angello Torres

Tutorual finalizado - No carga el enlace de nuevo usuario

parent 81887d95
......@@ -4,6 +4,7 @@
@section('content')
<h1>{{ $title }}</h1>
<ul>
@forelse ($users as $user)
<li>
......
......@@ -38,21 +38,25 @@ class pruebaTest extends TestCase
*/
/** @test */
function it_create_new_user(){
function it_creates_a_new_user()
{
//$this->withoutExceptionHandling();
$this->post('/usuarios/', [
'name' => 'Duilio',
'email' => 'duilio@styde.net',
'password' => '123456',
]);// ->assertSee('Procesando información ...');
'name' => 'Usuario Prueba',
'email' => 'user.prueba@mail.es',
'password' => '123456'
])->assertRedirect('/usuarios');
$this->assertDatabaseHas('users', [
'name' => 'Duilio Palacios',
'email' => 'duilio@sryde.net',
$this->assertCredentials([
'name' => 'Usuario Prueba',
'email' => 'user.prueba@mail.es',
'password' => '123456',
]);
}
/** @test */
function the_name_is_required(){
/* function the_name_is_required(){
// $this->withoutExceptionHandling();
$this->post('usuarios', [
......@@ -64,5 +68,5 @@ class pruebaTest extends TestCase
$this->assertDatabaseMissing('users', [
'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