public function setUp() { parent::setUp(); $this->blob_data = new stdClass(); $this->blob_data->sha = '1234567890qwertyuiop'; $this->blob_data->path = '_posts/2015-10-31-new-post.md'; $this->blob_data->content = base64_encode(<<<MD --- post_title: 'New Post' permalink: > http://example.org/2015/11/02/hello-world/ --- Post content. MD ); $this->blob_data->encoding = 'base64'; $this->blob = new WordPress_GitHub_Sync_Blob($this->blob_data); $this->content['utf8'] = <<<MD --- post_title: 'New Post Title' --- New post content. MD; $this->content['base64'] = base64_encode($this->content['utf8']); }
public function setUp() { parent::setUp(); $this->fetch = new WordPress_GitHub_Sync_Fetch_Client($this->app); $this->api_cache->shouldReceive('fetch_commit')->andReturn(false)->byDefault(); $this->api_cache->shouldReceive('fetch_tree')->andReturn(false)->byDefault(); $this->api_cache->shouldReceive('fetch_blob')->andReturn(false)->byDefault(); }
public function setUp() { parent::setUp(); }
public function setUp() { parent::setUp(); $this->persist = new WordPress_GitHub_Sync_Persist_Client($this->app); $this->commit->shouldReceive('tree')->andReturn($this->tree); }