public function test__bump_lastpostmodified() { $this->post->post_type = 'book'; $this->post->post_modified = '2003-05-27 00:00:00'; $this->post->post_modified_gmt = '2003-05-27 05:00:00'; Last_Post_Modified::bump_lastpostmodified($this->post); $blog_actual = Last_Post_Modified::get_lastpostmodified('blog', 'book'); $this->assertEquals('2003-05-27 00:00:00', $blog_actual); $gmt_actual = Last_Post_Modified::get_lastpostmodified('gmt', 'book'); $this->assertEquals('2003-05-27 05:00:00', $gmt_actual); $server_actual = Last_Post_Modified::get_lastpostmodified('server', 'book'); $this->assertEquals('2003-05-27 05:00:00', $server_actual); }