Advertisement
Guest User

laravel test

a guest
May 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. public function testCreateAdmin()
  2. {
  3. $this->browse(function ($first, $second) {
  4. $first->loginAs(User::find(1));
  5.  
  6. $first->assertPathIs("/superuser/admin");
  7.  
  8. $first->type("name", "Angelica");
  9. $first->type("apellidos", "Lopez");
  10. $first->type("email", "angelicalopez@utp.edu.co");
  11. $first->type("dni", "12345678");
  12. $first->type("telefonos", "312545565");
  13. $first->type("direccion", "Pereira Risaralda");
  14. $first->type("pais_id", "30");
  15. $first->type("password", "12345678");
  16.  
  17. $first->click('button');
  18.  
  19. // maybe don't work this
  20. $first->assertStatus(200);
  21. });
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement