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