| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class MariaDb1043PlatformTest extends AbstractMySQLPlatformTestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function createPlatform() : MariaDb1043Platform |
||
| 16 | { |
||
| 17 | return new MariaDb1043Platform(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function testInheritsMariaDb1027Platform() : void |
||
| 21 | { |
||
| 22 | self::assertInstanceOf(MariaDb1027Platform::class, $this->platform); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testHasNativeJsonType() : void |
||
| 26 | { |
||
| 27 | self::assertTrue($this->platform->hasNativeJsonType()); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * From MariaDB 10.4.3, the JSON_VALID function is automatically used as a CHECK constraint for the JSON data type |
||
| 32 | * alias in order to ensure that a valid json document is inserted. |
||
| 33 | * |
||
| 34 | * @link https://mariadb.com/kb/en/library/json-data-type/ |
||
| 35 | */ |
||
| 36 | public function testReturnsJsonTypeDeclarationSQL() : void |
||
| 37 | { |
||
| 38 | self::assertSame('JSON', $this->platform->getJsonTypeDeclarationSQL([])); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Overrides and skips AbstractMySQLPlatformTestCase test regarding propagation |
||
| 43 | * of unsupported default values for Blob and Text columns. |
||
| 44 | * |
||
| 45 | * @see AbstractMySQLPlatformTestCase::testDoesNotPropagateDefaultValuesForUnsupportedColumnTypes() |
||
| 46 | */ |
||
| 47 | public function testDoesNotPropagateDefaultValuesForUnsupportedColumnTypes() : void |
||
| 50 | } |
||
| 51 | } |
||
| 52 |