Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function testCreateAdmin()
- {
- $this->browse(function ($first, $second) {
- $first->loginAs(User::find(1));
- $first->assertPathIs("/superuser/admin");
- $first->type("name", "Angelica");
- $first->type("apellidos", "Lopez");
- $first->type("email", "angelicalopez@utp.edu.co");
- $first->type("dni", "12345678");
- $first->type("telefonos", "312545565");
- $first->type("direccion", "Pereira Risaralda");
- $first->type("pais_id", "30");
- $first->type("password", "12345678");
- $first->click('button');
- // maybe don't work this
- $first->assertStatus(200);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement