1
0
mirror of synced 2025-02-02 13:31:45 +03:00

#1202 - simplified test and test asset

This commit is contained in:
Marco Pivetta 2014-12-08 01:34:30 +01:00
parent 5670912d0d
commit a5a7c879fc
2 changed files with 5 additions and 15 deletions

View File

@ -2,22 +2,12 @@
namespace Doctrine\Tests\Models\NullDefault; namespace Doctrine\Tests\Models\NullDefault;
/** /** @Entity */
* @Entity
* @Table(name="null-default")
*/
class NullDefaultColumn class NullDefaultColumn
{ {
/** @Id @GeneratedValue @Column(type="integer") */
/**
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
public $id; public $id;
/** /** @Column(options={"default":NULL}) */
* @Column(name="`null-default`",nullable=true,options={"default":NULL})
*/
public $nullDefault; public $nullDefault;
} }

View File

@ -112,8 +112,8 @@ class SchemaToolTest extends \Doctrine\Tests\OrmTestCase
); );
$customSchemaOptions = $schemaTool->getSchemaFromMetadata($classes) $customSchemaOptions = $schemaTool->getSchemaFromMetadata($classes)
->getTable('null-default') ->getTable('NullDefaultColumn')
->getColumn('null-default') ->getColumn('nullDefault')
->getCustomSchemaOptions(); ->getCustomSchemaOptions();
$this->assertSame(array(), $customSchemaOptions); $this->assertSame(array(), $customSchemaOptions);