test: replace \Safe\DateTimeImmutable with \DateTimeImmutable

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2024-04-17 08:31:01 +02:00
parent 7a17cce4e6
commit 5ad0b84810
No known key found for this signature in database
GPG Key ID: 27137D9E7D273FB2
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 */