/**
  * helper method to call the getActiveByRequest Method with different params
  *
  * @param \Enlight_Controller_Request_Request $request
  * @param \Shopware\Models\Shop\Repository $repository
  * @param $url
  * @param $shopName
  * @param bool $secure
  * @internal param $mainShop
  */
 public function callGetActiveShopByRequest(Enlight_Controller_Request_Request $request, \Shopware\Models\Shop\Repository $repository, $url, $shopName, $secure = false)
 {
     $request->setRequestUri($url);
     $request->setSecure($secure);
     $shop = $repository->getActiveByRequest($request);
     $this->assertNotNull($shop);
     $this->assertEquals($shopName, $shop->getName());
 }