| @@ 267-281 (lines=15) @@ | ||
| 264 | /** |
|
| 265 | * @group DDC-2843 |
|
| 266 | */ |
|
| 267 | public function testBooleanDefault() |
|
| 268 | { |
|
| 269 | $table = new \Doctrine\DBAL\Schema\Table('ddc2843_bools'); |
|
| 270 | $table->addColumn('id', 'integer'); |
|
| 271 | $table->addColumn('checked', 'boolean', array('default' => false)); |
|
| 272 | ||
| 273 | $this->_sm->createTable($table); |
|
| 274 | ||
| 275 | $databaseTable = $this->_sm->listTableDetails($table->getName()); |
|
| 276 | ||
| 277 | $c = new \Doctrine\DBAL\Schema\Comparator(); |
|
| 278 | $diff = $c->diffTable($table, $databaseTable); |
|
| 279 | ||
| 280 | $this->assertFalse($diff); |
|
| 281 | } |
|
| 282 | ||
| 283 | public function testListTableWithBinary() |
|
| 284 | { |
|
| @@ 22-36 (lines=15) @@ | ||
| 19 | } |
|
| 20 | } |
|
| 21 | ||
| 22 | public function testSearchPathSchemaChanges() |
|
| 23 | { |
|
| 24 | $table = new Table("dbal510tbl"); |
|
| 25 | $table->addColumn('id', 'integer'); |
|
| 26 | $table->setPrimaryKey(array('id')); |
|
| 27 | ||
| 28 | $this->_conn->getSchemaManager()->createTable($table); |
|
| 29 | ||
| 30 | $onlineTable = $this->_conn->getSchemaManager()->listTableDetails('dbal510tbl'); |
|
| 31 | ||
| 32 | $comparator = new Comparator(); |
|
| 33 | $diff = $comparator->diffTable($onlineTable, $table); |
|
| 34 | ||
| 35 | $this->assertFalse($diff); |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||