/**
  * @test
  */
 public function requestingRoomBookingWithoutQuotaApplicationDoesNotIncreaseSpentAmount()
 {
     $this->inject($this->bookableService, 'configuration', [BookableService::TYPE_ROOM => ['fractionBase' => 12, 'availableQuota' => 10]]);
     $this->bookableService->requestRooms($this->buildBookableRequest(10));
     $this->persistenceManager->persistAll();
     $requests = $this->buildBookableRequest(3);
     $requests = array_map(function ($request) {
         $request['quotaApplies'] = FALSE;
         return $request;
     }, $requests);
     $requestedRooms = $this->bookableService->requestRooms($requests);
     $this->persistenceManager->persistAll();
     $requestedStates = array_map(function ($requestedRoom) {
         return $requestedRoom->getBookingState();
     }, $requestedRooms);
     $this->assertEquals(array_fill(0, 3, AbstractBookable::BOOKING_STATE_PENDING), $requestedStates);
     $this->assertEquals(10, $this->roomRepository->getSpentQuota() / 12);
 }