public function testPrePersist() { $this->assertNull($this->website->getCreatedAt()); $this->website->prePersist(); $this->assertInstanceOf('\\DateTime', $this->website->getCreatedAt()); }