mirror of
https://github.com/symfony/ux-leaflet-map.git
synced 2026-03-24 00:52:09 +01:00
35 lines
991 B
PHP
35 lines
991 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\UX\Map\Bridge\Leaflet\Tests\Option;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Symfony\UX\Map\Bridge\Leaflet\Option\ControlPosition;
|
|
use Symfony\UX\Map\Bridge\Leaflet\Option\ZoomControlOptions;
|
|
|
|
class ZoomControlOptionsTest extends TestCase
|
|
{
|
|
public function testToArray(): void
|
|
{
|
|
$options = new ZoomControlOptions(
|
|
position: ControlPosition::TOP_LEFT,
|
|
);
|
|
|
|
self::assertSame([
|
|
'position' => ControlPosition::TOP_LEFT->value,
|
|
'zoomInText' => '<span aria-hidden="true">+</span>',
|
|
'zoomInTitle' => 'Zoom in',
|
|
'zoomOutText' => '<span aria-hidden="true">−</span>',
|
|
'zoomOutTitle' => 'Zoom out',
|
|
], $options->toArray());
|
|
}
|
|
}
|