Skip to content

Commit

Permalink
Merge pull request #411 from AOEpeople/feature/change-benefits-in-kind
Browse files Browse the repository at this point in the history
change prices
  • Loading branch information
hacksch authored Jan 29, 2024
2 parents c054c50 + 7fd58a3 commit 7a1fdef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ parameters:
app.secret: '%env(APP_SECRET)%'

mealz.lock_toggle_participation_at: '-1 day 16:00'
mealz.meal.price: 3.60
mealz.meal.price: 4.13
mealz.meal.search_timestamp: '2000-01-01'
mealz.meal.new_flag_counter: 2
mealz.meal.combined.price: 5.60
mealz.meal.combined.price: 6.13

# PDO Session Handler options
# Define table and column names to store session data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function getDishVariation(Dish $dish): DishVariation
$dishVariation->setTitleDe($dish->getTitleDe() . $dummyPrefix);
$dishVariation->setTitleEn($dish->getTitleEn() . $dummyPrefix);
$dishVariation->setParent($dish);
$dishVariation->setPrice(3.60);
$dishVariation->setPrice(4.13);

$variations = $dish->getVariations();
$variations->add($dishVariation);
Expand Down
2 changes: 1 addition & 1 deletion src/Mealz/MealBundle/DataFixtures/ORM/LoadDishes.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getOrder(): int
protected function addDish(string $titleEN, string $titleDE, string $descEN = null, string $descDE = null, bool $oneSize = false): void
{
$dish = new Dish();
$dish->setPrice(3.60);
$dish->setPrice(4.13);
$dish->setTitleEn($titleEN);
$dish->setTitleDe($titleDE);
$dish->setDescriptionEn('Description - ' . $titleEN);
Expand Down
3 changes: 2 additions & 1 deletion src/Mealz/MealBundle/Tests/Repository/WeekRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function testGetNextWeek(): void
$currCalWeek = (int) $now->format('W');

$lastCalWeek = (int) $now->modify('last day of December')->format('W');
$this->assertContains($lastCalWeek, [52, 53]);
// last day of the year can we in the 52, 53 and in the calendar week 1 of the next year
$this->assertContains($lastCalWeek, [52, 53, 1]);

$nextWeek = $this->weekRepository->getNextWeek(DateTime::createFromImmutable($now));
$this->assertInstanceOf(Week::class, $nextWeek);
Expand Down

0 comments on commit 7a1fdef

Please sign in to comment.