save($post); $this->assertEquals(1, $post->getId()); $this->assertEquals($post->getId(), $repository->findById(1)->getId()); } }