public function testGetShowTierPricesWithRequestAndSaveState() { $this->handler->setRequest($this->request); $this->request->expects($this->exactly(3))->method('get')->willReturnMap([[FrontendPriceListRequestHandler::TIER_PRICES_KEY, null, false, '1'], [FrontendPriceListRequestHandler::SAVE_STATE_KEY, null, false, true]]); $this->session->expects($this->once())->method('set')->with(FrontendPriceListRequestHandler::TIER_PRICES_KEY, true); $this->assertEquals(true, $this->handler->getShowTierPrices()); }