public function testApplyPriceListLimitationsNotApplied()
 {
     /** @var \PHPUnit_Framework_MockObject_MockObject|QueryBuilder $qb */
     $qb = $this->getMockBuilder('Doctrine\\ORM\\QueryBuilder')->disableOriginalConstructor()->getMock();
     $this->priceListTreeHandler->expects($this->never())->method($this->anything());
     $this->modifier->applyPriceListLimitations($qb);
 }
 public function testGetPriceListCurrenciesWithRequestAndSaveState()
 {
     $this->handler->setRequest($this->request);
     $this->request->expects($this->exactly(2))->method('get')->willReturnMap([[FrontendPriceListRequestHandler::PRICE_LIST_CURRENCY_KEY, null, false, 'EUR'], [FrontendPriceListRequestHandler::SAVE_STATE_KEY, null, false, true]]);
     $this->priceListTreeHandler->expects($this->once())->method('getPriceList')->willReturn($this->getPriceList(42, ['EUR', 'USD']));
     $this->session->expects($this->once())->method('set')->with(FrontendPriceListRequestHandler::PRICE_LIST_CURRENCY_KEY, 'EUR');
     $this->assertEquals(['EUR'], $this->handler->getPriceListSelectedCurrencies());
 }