public function testRemove() { $user = $this->dm->find($this->type, 1); $this->dm->remove($user); $this->dm->flush(); $newUser = $this->dm->find($this->type, 1); $this->assertNull($newUser); }