Пример #1
0
 public function setUp()
 {
     parent::setUp();
     $this->index = $this->api->index;
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $this->post = $this->api->posts->create(array('title' => 'API Test Post', 'content_raw' => 'This is a test to check that creating posts from the API works correctly.', 'excerpt_raw' => 'Test post from the API', 'date' => date('c', time())));
     $this->assertInstanceOf('WPAPI_Post', $this->post);
 }