tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 1 location
|
@@ 566-578 (lines=13) @@
|
563 |
|
} |
564 |
|
} |
565 |
|
|
566 |
|
public function testGetDefaultValueDeclarationSQLForDateType() |
567 |
|
{ |
568 |
|
$currentDateSql = $this->_platform->getCurrentDateSQL(); |
569 |
|
$field = array( |
570 |
|
'type' => Type::getType('date'), |
571 |
|
'default' => $currentDateSql, |
572 |
|
); |
573 |
|
|
574 |
|
$this->assertEquals( |
575 |
|
' DEFAULT '.$currentDateSql, |
576 |
|
$this->_platform->getDefaultValueDeclarationSQL($field) |
577 |
|
); |
578 |
|
} |
579 |
|
|
580 |
|
/** |
581 |
|
* @group DBAL-45 |
tests/Doctrine/Tests/DBAL/Platforms/SQLServer2008PlatformTest.php 1 location
|
@@ 24-36 (lines=13) @@
|
21 |
|
); |
22 |
|
} |
23 |
|
|
24 |
|
public function testGetDefaultValueDeclarationSQLForDateType() |
25 |
|
{ |
26 |
|
$currentDateSql = $this->_platform->getCurrentDateSQL(); |
27 |
|
$field = array( |
28 |
|
'type' => Type::getType('date'), |
29 |
|
'default' => $currentDateSql, |
30 |
|
); |
31 |
|
|
32 |
|
$this->assertEquals( |
33 |
|
" DEFAULT '".$currentDateSql."'", |
34 |
|
$this->_platform->getDefaultValueDeclarationSQL($field) |
35 |
|
); |
36 |
|
} |
37 |
|
} |
38 |
|
|
tests/Doctrine/Tests/DBAL/Platforms/SQLServer2012PlatformTest.php 1 location
|
@@ 376-388 (lines=13) @@
|
373 |
|
self::assertEquals($expectedSql, $sql); |
374 |
|
} |
375 |
|
|
376 |
|
public function testGetDefaultValueDeclarationSQLForDateType() |
377 |
|
{ |
378 |
|
$currentDateSql = $this->_platform->getCurrentDateSQL(); |
379 |
|
$field = array( |
380 |
|
'type' => Type::getType('date'), |
381 |
|
'default' => $currentDateSql, |
382 |
|
); |
383 |
|
|
384 |
|
$this->assertEquals( |
385 |
|
" DEFAULT '".$currentDateSql."'", |
386 |
|
$this->_platform->getDefaultValueDeclarationSQL($field) |
387 |
|
); |
388 |
|
} |
389 |
|
} |
390 |
|
|
tests/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php 1 location
|
@@ 62-74 (lines=13) @@
|
59 |
|
); |
60 |
|
} |
61 |
|
|
62 |
|
public function testGetDefaultValueDeclarationSQLForDateType() |
63 |
|
{ |
64 |
|
$currentDateSql = $this->_platform->getCurrentDateSQL(); |
65 |
|
$field = array( |
66 |
|
'type' => Type::getType('date'), |
67 |
|
'default' => $currentDateSql, |
68 |
|
); |
69 |
|
|
70 |
|
$this->assertEquals( |
71 |
|
" DEFAULT '".$currentDateSql."'", |
72 |
|
$this->_platform->getDefaultValueDeclarationSQL($field) |
73 |
|
); |
74 |
|
} |
75 |
|
} |
76 |
|
|