| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function testIssue() |
||
| 17 | { |
||
| 18 | $conn = $this->createMock(Connection::class); |
||
| 19 | $platform = new MariaDb1027Platform(); |
||
| 20 | |||
| 21 | $schemaManager = new MySqlSchemaManager($conn, $platform); |
||
| 22 | |||
| 23 | $reflectionMethod = new ReflectionMethod($schemaManager, '_getPortableTableColumnDefinition'); |
||
| 24 | $reflectionMethod->setAccessible(true); |
||
| 25 | |||
| 26 | $column = $reflectionMethod->invoke($schemaManager, [ |
||
| 27 | 'field' => 'string_empty_by_default', |
||
| 28 | 'type' => 'varchar', |
||
| 29 | 'length' => 255, |
||
| 30 | 'default' => '', |
||
| 31 | 'notnull' => true, |
||
| 32 | 'extra' => false, |
||
| 33 | 'null' => false, |
||
| 34 | ]); |
||
| 35 | |||
| 36 | $this->assertEquals(null, $column->getDefault()); |
||
| 37 | } |
||
| 39 |