mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
24 lines
637 B
PHP
24 lines
637 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
||
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
|
*/
|
||
|
|
namespace Test\DB\Middleware;
|
||
|
|
|
||
|
|
use OC\DB\Middleware\UtcTimezoneMiddleware;
|
||
|
|
use OC\DB\Middleware\UtcTimezoneMiddlewareDriver;
|
||
|
|
use Test\TestCase;
|
||
|
|
|
||
|
|
final class UtcTimezoneMiddlewareTest extends TestCase {
|
||
|
|
public function testWrap(): void {
|
||
|
|
$driver = $this->createMock(\Doctrine\DBAL\Driver::class);
|
||
|
|
$middleware = new UtcTimezoneMiddleware();
|
||
|
|
$wrappedDriver = $middleware->wrap($driver);
|
||
|
|
|
||
|
|
$this->assertInstanceOf(UtcTimezoneMiddlewareDriver::class, $wrappedDriver);
|
||
|
|
}
|
||
|
|
}
|