| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testGetBooleanColumn() |
||
| 14 | { |
||
| 15 | $table = new Table('boolean_column_test'); |
||
| 16 | $table->addColumn('bool', 'boolean'); |
||
| 17 | $table->addColumn('bool_commented', 'boolean', ['comment' => "That's a comment"]); |
||
| 18 | |||
| 19 | $this->schemaManager->createTable($table); |
||
| 20 | |||
| 21 | $columns = $this->schemaManager->listTableColumns('boolean_column_test'); |
||
| 22 | |||
| 23 | self::assertInstanceOf(BooleanType::class, $columns['bool']->getType()); |
||
| 24 | self::assertInstanceOf(BooleanType::class, $columns['bool_commented']->getType()); |
||
| 25 | |||
| 26 | self::assertNull($columns['bool']->getComment()); |
||
| 27 | self::assertSame("That's a comment", $columns['bool_commented']->getComment()); |
||
| 28 | } |
||
| 40 |