Exemplo n.º 1
0
 public function testDoPrePersist()
 {
     $item = new NavigationItem();
     $item->doPrePersist();
     $this->assertInstanceOf('DateTime', $item->getCreatedAt());
     $this->assertInstanceOf('DateTime', $item->getUpdatedAt());
     $this->assertEquals($item->getCreatedAt(), $item->getUpdatedAt());
 }
 /**
  * {@inheritDoc}
  */
 public function getCreatedAt()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', array());
     return parent::getCreatedAt();
 }