tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 location
|
@@ 191-202 (lines=12) @@
|
| 188 |
|
* @dataProvider serialTypes |
| 189 |
|
* @group 2906 |
| 190 |
|
*/ |
| 191 |
|
public function testGetDefaultValueDeclarationSQLIgnoresTheDefaultKeyWhenTheFieldIsSerial(string $type) : void |
| 192 |
|
{ |
| 193 |
|
$sql = $this->_platform->getDefaultValueDeclarationSQL( |
| 194 |
|
[ |
| 195 |
|
'autoincrement' => true, |
| 196 |
|
'type' => Type::getType($type), |
| 197 |
|
'default' => 1, |
| 198 |
|
] |
| 199 |
|
); |
| 200 |
|
|
| 201 |
|
self::assertSame('', $sql); |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
public function testGeneratesTypeDeclarationForIntegers() |
| 205 |
|
{ |
tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 1 location
|
@@ 841-853 (lines=13) @@
|
| 838 |
|
/** |
| 839 |
|
* @group DBAL-553 |
| 840 |
|
*/ |
| 841 |
|
public function testReturnsJsonTypeDeclarationSQL() |
| 842 |
|
{ |
| 843 |
|
$column = array( |
| 844 |
|
'length' => 666, |
| 845 |
|
'notnull' => true, |
| 846 |
|
'type' => Type::getType('json_array'), |
| 847 |
|
); |
| 848 |
|
|
| 849 |
|
self::assertSame( |
| 850 |
|
$this->_platform->getClobTypeDeclarationSQL($column), |
| 851 |
|
$this->_platform->getJsonTypeDeclarationSQL($column) |
| 852 |
|
); |
| 853 |
|
} |
| 854 |
|
|
| 855 |
|
/** |
| 856 |
|
* @group DBAL-234 |