Merge pull request #5928 from nextcloud/test/fix-date-time-immutable

test: replace \Safe\DateTimeImmutable with \DateTimeImmutable
This commit is contained in:
Richard Steinmetz 2024-04-17 08:45:01 +02:00 committed by GitHub
commit ddf7a4e95a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -25,6 +25,7 @@ declare(strict_types=1);
namespace OCA\Calendar\Controller;
use ChristophWurst\Nextcloud\Testing\TestCase;
use DateTimeImmutable;
use DateTimeZone;
use Exception;
use InvalidArgumentException;
@ -46,7 +47,6 @@ use OCP\IUser;
use OCP\Mail\IMailer;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
use Safe\DateTimeImmutable;
class BookingControllerTest extends TestCase {
/** @var string */

View File

@ -23,6 +23,7 @@ declare(strict_types=1);
*/
namespace OCA\Calendar\Dashboard;
use DateTimeImmutable;
use OCA\Calendar\Service\JSDataService;
use OCA\DAV\CalDAV\CalendarImpl;
use OCP\AppFramework\Services\IInitialState;
@ -34,7 +35,6 @@ use OCP\IDateTimeFormatter;
use OCP\IL10N;
use OCP\IURLGenerator;
use PHPUnit\Framework\MockObject\MockObject;
use Safe\DateTimeImmutable;
use Test\TestCase;
class CalendarWidgetTest extends TestCase {

View File

@ -27,6 +27,7 @@ declare(strict_types=1);
namespace OCA\Calendar\Tests\Unit\Service\Appointments;
use ChristophWurst\Nextcloud\Testing\TestCase;
use DateTimeImmutable;
use Exception;
use OCA\Calendar\Db\AppointmentConfig;
use OCA\Calendar\Db\Booking;
@ -47,7 +48,6 @@ use OCP\IUser;
use OCP\Security\ISecureRandom;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Log\LoggerInterface;
use Safe\DateTimeImmutable;
class BookingServiceTest extends TestCase {
/** @var AvailabilityGenerator|MockObject */