Inheritance: extends PHPUnit_Framework_TestCase
 public function testCheckoutAction()
 {
     // Add cart item to session
     $session = $this->client->getContainer()->get('session');
     $session->set('cart', [1 => 1]);
     $session->save();
     $crawler = $this->client->request('GET', '/cart/checkout/1');
     $this->assertGreaterThan(0, $crawler->filter('html:contains("Checkout")')->count());
     $this->assertGreaterThan(0, $crawler->filter('html:contains("Demo pica 1")')->count());
 }
 public function testShowAction()
 {
     $crawler = $this->client->request('GET', '/products/1/order/1');
     $this->assertGreaterThan(0, $crawler->filter('html:contains("Demo pica 1")')->count());
 }