#1202 - simplified test and test asset
This commit is contained in:
parent
5670912d0d
commit
a5a7c879fc
@ -2,22 +2,12 @@
|
||||
|
||||
namespace Doctrine\Tests\Models\NullDefault;
|
||||
|
||||
/**
|
||||
* @Entity
|
||||
* @Table(name="null-default")
|
||||
*/
|
||||
/** @Entity */
|
||||
class NullDefaultColumn
|
||||
{
|
||||
|
||||
/**
|
||||
* @Id
|
||||
* @GeneratedValue
|
||||
* @Column(type="integer")
|
||||
*/
|
||||
/** @Id @GeneratedValue @Column(type="integer") */
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* @Column(name="`null-default`",nullable=true,options={"default":NULL})
|
||||
*/
|
||||
/** @Column(options={"default":NULL}) */
|
||||
public $nullDefault;
|
||||
}
|
||||
|
@ -112,8 +112,8 @@ class SchemaToolTest extends \Doctrine\Tests\OrmTestCase
|
||||
);
|
||||
|
||||
$customSchemaOptions = $schemaTool->getSchemaFromMetadata($classes)
|
||||
->getTable('null-default')
|
||||
->getColumn('null-default')
|
||||
->getTable('NullDefaultColumn')
|
||||
->getColumn('nullDefault')
|
||||
->getCustomSchemaOptions();
|
||||
|
||||
$this->assertSame(array(), $customSchemaOptions);
|
||||
|
Loading…
x
Reference in New Issue
Block a user