Backend\Modules\Authentication\Tests\Action\IndexTest::testAuthenticationWithWrongCredentials PHP Method

testAuthenticationWithWrongCredentials() public method

    public function testAuthenticationWithWrongCredentials()
    {
        $client = static::createClient();
        $crawler = $client->request('GET', '/private/en/authentication');
        self::assertEquals(200, $client->getResponse()->getStatusCode());
        $form = $crawler->selectButton('login')->form();
        $this->submitForm($client, $form, array('form' => 'authenticationIndex', 'backend_email' => '[email protected]', 'backend_password' => 'wrong_password'));
        // result should not yet be found
        self::assertContains('Your e-mail and password combination is incorrect.', $client->getResponse()->getContent());
    }