Compare commits
2
Commits
af73dcdc2d
...
dcd85bb911
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcd85bb911 | ||
|
|
4b70d0e2b7 |
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
name: ephub
|
name: ephub
|
||||||
type: symfony
|
type: symfony
|
||||||
docroot: public
|
docroot: public
|
||||||
php_version: "8.4"
|
php_version: "8.5"
|
||||||
webserver_type: apache-fpm
|
webserver_type: apache-fpm
|
||||||
xdebug_enabled: false
|
xdebug_enabled: false
|
||||||
additional_hostnames: []
|
additional_hostnames: []
|
||||||
|
|||||||
+5
-2
@@ -4,7 +4,7 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.2",
|
"php": ">=8.5",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
"doctrine/doctrine-bundle": "^3.3",
|
"doctrine/doctrine-bundle": "^3.3",
|
||||||
@@ -56,7 +56,10 @@
|
|||||||
"symfony/runtime": true
|
"symfony/runtime": true
|
||||||
},
|
},
|
||||||
"bump-after-update": true,
|
"bump-after-update": true,
|
||||||
"sort-packages": true
|
"sort-packages": true,
|
||||||
|
"platform": {
|
||||||
|
"php": "8.5.0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
Generated
+5
-2
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "3654c7abbba926fa47fcade4936237f0",
|
"content-hash": "d4a87cae8b7e936e22ef401af274c700",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "composer/semver",
|
"name": "composer/semver",
|
||||||
@@ -11492,10 +11492,13 @@
|
|||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": ">=8.2",
|
"php": ">=8.5",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-iconv": "*"
|
"ext-iconv": "*"
|
||||||
},
|
},
|
||||||
"platform-dev": {},
|
"platform-dev": {},
|
||||||
|
"platform-overrides": {
|
||||||
|
"php": "8.5.0"
|
||||||
|
},
|
||||||
"plugin-api-version": "2.9.0"
|
"plugin-api-version": "2.9.0"
|
||||||
}
|
}
|
||||||
@@ -546,10 +546,13 @@ class BookingControllerTest extends WebTestCase
|
|||||||
public function testPastDaysInTheCalendarAreMarkedButStillNavigable(): void
|
public function testPastDaysInTheCalendarAreMarkedButStillNavigable(): void
|
||||||
{
|
{
|
||||||
$this->client->loginUser($this->user('[email protected]'));
|
$this->client->loginUser($this->user('[email protected]'));
|
||||||
$yesterday = (new \DateTimeImmutable('today'))->modify('-1 day')->format('Y-m-d');
|
// Mid-month of last month rather than yesterday: on the 1st, yesterday is a spill-over
|
||||||
|
// day from the month before, and the out-of-month styling takes precedence over "past".
|
||||||
|
$selected = (new \DateTimeImmutable('first day of last month midnight'))->modify('+14 days');
|
||||||
|
$past = $selected->modify('-1 day')->format('Y-m-d');
|
||||||
|
|
||||||
$crawler = $this->client->request('GET', '/book/desk');
|
$crawler = $this->client->request('GET', '/book/desk?date='.$selected->format('Y-m-d'));
|
||||||
$cell = $crawler->filter(\sprintf('button[hx-get*="/book/desk/day/%s"]', $yesterday));
|
$cell = $crawler->filter(\sprintf('button[hx-get*="/book/desk/day/%s"]', $past));
|
||||||
|
|
||||||
self::assertCount(1, $cell);
|
self::assertCount(1, $cell);
|
||||||
self::assertSame('true', $cell->attr('aria-disabled'));
|
self::assertSame('true', $cell->attr('aria-disabled'));
|
||||||
@@ -559,10 +562,13 @@ class BookingControllerTest extends WebTestCase
|
|||||||
public function testFutureDaysInTheCalendarAreNotMarkedAsPast(): void
|
public function testFutureDaysInTheCalendarAreNotMarkedAsPast(): void
|
||||||
{
|
{
|
||||||
$this->client->loginUser($this->user('[email protected]'));
|
$this->client->loginUser($this->user('[email protected]'));
|
||||||
$tomorrow = (new \DateTimeImmutable('today'))->modify('+1 day')->format('Y-m-d');
|
// Mid-month of next month rather than tomorrow: on a month's last day, tomorrow falls
|
||||||
|
// outside the grid whenever that day is a Sunday.
|
||||||
|
$selected = (new \DateTimeImmutable('first day of next month midnight'))->modify('+14 days');
|
||||||
|
$future = $selected->modify('+1 day')->format('Y-m-d');
|
||||||
|
|
||||||
$crawler = $this->client->request('GET', '/book/desk');
|
$crawler = $this->client->request('GET', '/book/desk?date='.$selected->format('Y-m-d'));
|
||||||
$cell = $crawler->filter(\sprintf('button[hx-get*="/book/desk/day/%s"]', $tomorrow));
|
$cell = $crawler->filter(\sprintf('button[hx-get*="/book/desk/day/%s"]', $future));
|
||||||
|
|
||||||
self::assertCount(1, $cell);
|
self::assertCount(1, $cell);
|
||||||
self::assertNull($cell->attr('aria-disabled'));
|
self::assertNull($cell->attr('aria-disabled'));
|
||||||
|
|||||||
Reference in new issue
Block a user