Files
archived-ux-google-map/tests/Option/ControlPositionTest.php
2024-08-07 14:14:07 +02:00

35 lines
1.4 KiB
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\Google\Tests\Option;
use PHPUnit\Framework\TestCase;
use Symfony\UX\Map\Bridge\Google\Option\ControlPosition;
class ControlPositionTest extends TestCase
{
public function testEnumValues(): void
{
self::assertSame(24, ControlPosition::BLOCK_END_INLINE_CENTER->value);
self::assertSame(25, ControlPosition::BLOCK_END_INLINE_END->value);
self::assertSame(23, ControlPosition::BLOCK_END_INLINE_START->value);
self::assertSame(15, ControlPosition::BLOCK_START_INLINE_CENTER->value);
self::assertSame(16, ControlPosition::BLOCK_START_INLINE_END->value);
self::assertSame(14, ControlPosition::BLOCK_START_INLINE_START->value);
self::assertSame(21, ControlPosition::INLINE_END_BLOCK_CENTER->value);
self::assertSame(22, ControlPosition::INLINE_END_BLOCK_END->value);
self::assertSame(20, ControlPosition::INLINE_END_BLOCK_START->value);
self::assertSame(17, ControlPosition::INLINE_START_BLOCK_CENTER->value);
self::assertSame(19, ControlPosition::INLINE_START_BLOCK_END->value);
self::assertSame(18, ControlPosition::INLINE_START_BLOCK_START->value);
}
}