Aimeos\ShopBundle\Tests\Controller\BasketControllerTest::testStandardRelated PHP Method

testStandardRelated() public method

public testStandardRelated ( )
    public function testStandardRelated()
    {
        $client = static::createClient();
        $crawler = $client->request('GET', '/unittest/de/EUR/list');
        $link = $crawler->filter('.catalog-list-items .product a:contains("Cafe Noire Expresso")')->link();
        $crawler = $client->click($link);
        $form = $crawler->filter('.catalog-detail .addbasket .btn-action')->form();
        $crawler = $client->submit($form);
        $this->assertEquals(1, $crawler->filter('.basket-related-bought .product')->count());
    }