function test_update_notifications_clicked_on_correct_post()
 {
     $post1ID = $this->factory->post->create();
     update_post_meta($post1ID, '_notifications_clicked', 0);
     update_post_meta($post1ID, '_notifications_sent', 0);
     $post2ID = $this->factory->post->create();
     update_post_meta($post2ID, '_notifications_clicked', 0);
     update_post_meta($post2ID, '_notifications_sent', 0);
     $post3ID = $this->factory->post->create();
     update_post_meta($post3ID, '_notifications_clicked', 0);
     update_post_meta($post3ID, '_notifications_sent', 0);
     $query = (object) array('query_vars' => array('webpush_post_id' => $post1ID));
     WebPush_Main::on_parse_request($query);
     $this->assertEquals(1, get_post_meta($post1ID, '_notifications_clicked', true));
     $this->assertEquals(0, get_post_meta($post1ID, '_notifications_sent', true));
     $this->assertEquals(0, get_post_meta($post2ID, '_notifications_clicked', true));
     $this->assertEquals(0, get_post_meta($post2ID, '_notifications_sent', true));
     $this->assertEquals(0, get_post_meta($post3ID, '_notifications_clicked', true));
     $this->assertEquals(0, get_post_meta($post3ID, '_notifications_sent', true));
     WebPush_Main::on_parse_request($query);
     $this->assertEquals(2, get_post_meta($post1ID, '_notifications_clicked', true));
     $this->assertEquals(0, get_post_meta($post1ID, '_notifications_sent', true));
     $this->assertEquals(0, get_post_meta($post2ID, '_notifications_clicked', true));
     $this->assertEquals(0, get_post_meta($post2ID, '_notifications_sent', true));
     $this->assertEquals(0, get_post_meta($post3ID, '_notifications_clicked', true));
     $this->assertEquals(0, get_post_meta($post3ID, '_notifications_sent', true));
 }