ForkCMS\Bundle\InstallerBundle\Tests\Controller\InstallerControllerTest::runTroughStep5 PHP Метод

runTroughStep5() приватный Метод

private runTroughStep5 ( Crawler $crawler, Client $client ) : mixed
$crawler Symfony\Component\DomCrawler\Crawler
$client Symfony\Bundle\FrameworkBundle\Client
Результат mixed
    private function runTroughStep5($crawler, $client)
    {
        $form = $crawler->selectButton('Finish installation')->form();
        $client->submit($form, array('install_login[email]' => '[email protected]', 'install_login[password][first]' => 'password', 'install_login[password][second]' => 'password'));
        $crawler = $client->followRedirect();
        // we should be redirected to step 6
        self::assertEquals(200, $client->getResponse()->getStatusCode());
        self::assertStringEndsWith('/install/6', $client->getHistory()->current()->getUri());
        self::assertGreaterThan(0, $crawler->filter('h2:contains("Installation complete")')->count());
        return $crawler;
    }