function testPostTypeObject() { $pid = $this->factory->post->create(); $post = new TimberPost($pid); $pto = $post->get_post_type(); $this->assertEquals('Posts', $pto->label); }