mardi 10 mai 2016

Laravel second test fails

I have one test case with two tests in it like so:

class LoginTest extends TestCase {
    use DatabaseMigrations;

    public function testSeeLoginForm() {
        $this->visit('/backend');
    }

    public function testCanLogin() {
        $this->visit('/backend');
    }
}

The 2 tests are identical but the first one passes and the second one fails with a 404 (A request to [http://localhost/backend] failed. Received status code [404].)

What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire