test: replace \Safe\DateTimeImmutable with \DateTimeImmutable
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
7a17cce4e6
commit
5ad0b84810
|
@ -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 */
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue