function testImageParent() { $post = $this->get_post_with_image(); $image = $post->thumbnail(); $this->assertEquals($post->ID, $image->parent()->ID); }