Skip to content

Instantly share code, notes, and snippets.

@benoitMariaux
Created November 28, 2013 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benoitMariaux/7691584 to your computer and use it in GitHub Desktop.
Save benoitMariaux/7691584 to your computer and use it in GitHub Desktop.
public function testContent()
{
$content = $this->getEm()->getRepository('StoreLocatorBundle:StoreLocatorContent')->findOneBy(array(
'storeLocator' => $this->storeLocator->getId(),
));
$url = $this->getUrl('content_test', array(
'content_id' => $content->getId(),
'site_id' => 1,
'_allow_base_site' => 1,
));
$client = $this->makeClient();
$crawler = $client->request('GET', $url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment