Frontend\Modules\Search\Tests\Actions\IndexTest::testSubmittedSearchValidatesData PHP Method

testSubmittedSearchValidatesData() public method

    public function testSubmittedSearchValidatesData()
    {
        $client = static::createClient();
        $crawler = $client->request('GET', '/en/search');
        self::assertEquals(200, $client->getResponse()->getStatusCode());
        $form = $crawler->selectButton('Search')->form();
        // $_GET parameters should be set manually, since Fork uses them.
        $this->submitForm($client, $form, array('form' => 'search'));
        // result should not yet be found
        self::assertContains('The searchterm is required.', $client->getResponse()->getContent());
    }