| @@ 1429-1443 (lines=15) @@ | ||
| 1426 | /** |
|
| 1427 | * @group 2859 |
|
| 1428 | */ |
|
| 1429 | public function testGetDefaultValueDeclarationSQLForDateType() : void |
|
| 1430 | { |
|
| 1431 | $currentDateSql = $this->_platform->getCurrentDateSQL(); |
|
| 1432 | foreach (['date', 'date_immutable'] as $type) { |
|
| 1433 | $field = [ |
|
| 1434 | 'type' => Type::getType($type), |
|
| 1435 | 'default' => $currentDateSql, |
|
| 1436 | ]; |
|
| 1437 | ||
| 1438 | self::assertSame( |
|
| 1439 | " DEFAULT '" . $currentDateSql . "'", |
|
| 1440 | $this->_platform->getDefaultValueDeclarationSQL($field) |
|
| 1441 | ); |
|
| 1442 | } |
|
| 1443 | } |
|
| 1444 | } |
|
| 1445 | ||
| @@ 574-588 (lines=15) @@ | ||
| 571 | /** |
|
| 572 | * @group 2859 |
|
| 573 | */ |
|
| 574 | public function testGetDefaultValueDeclarationSQLForDateType() : void |
|
| 575 | { |
|
| 576 | $currentDateSql = $this->_platform->getCurrentDateSQL(); |
|
| 577 | foreach (['date', 'date_immutable'] as $type) { |
|
| 578 | $field = [ |
|
| 579 | 'type' => Type::getType($type), |
|
| 580 | 'default' => $currentDateSql, |
|
| 581 | ]; |
|
| 582 | ||
| 583 | self::assertSame( |
|
| 584 | ' DEFAULT ' . $currentDateSql, |
|
| 585 | $this->_platform->getDefaultValueDeclarationSQL($field) |
|
| 586 | ); |
|
| 587 | } |
|
| 588 | } |
|
| 589 | ||
| 590 | /** |
|
| 591 | * @group DBAL-45 |
|