SevenShores\Hubspot\Tests\Integration\Resources\BlogPostsTest::delete_restoreDeleted PHP Method

delete_restoreDeleted() public method

    public function delete_restoreDeleted()
    {
        $post = $this->createBlogPost();
        $deleteResponse = $this->blogPosts->delete($post->id);
        $response = $this->blogPosts->restoreDeleted($post->id);
        $this->assertEquals(200, $deleteResponse->getStatusCode());
        $this->assertEquals(200, $response->getStatusCode());
    }