function setUp() { global $title; parent::setUp(); $this->settings = new Settings(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $title = "Settings page"; }
function setUp() { parent::setUp(); $this->create_post_and_children(); $this->adapter = new ApiAdapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->database = new Database(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->gist = new GistStub(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->gist->set_client($this->mock_github_client); $this->gist->set_adapter($this->mock_adapter); }
function setUp() { parent::setUp(); $this->database = new Database(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->save = new SaveTest(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->save->set_database($this->mock_database); $this->create_post_and_children(); $this->_setRole('administrator'); }
function setUp() { global $post; parent::setUp(); $this->editor = new Editor(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->create_post_and_children(); set_current_screen('gistpen'); $post = $this->gistpen; }
function setUp() { parent::setUp(); $this->create_post_and_children(); $this->query = new Query(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $migration = new WP_Gistpen\Migration(WP_Gistpen::$plugin_name, WP_Gistpen::$version); delete_post_meta($this->gistpen->ID, 'wpgp_revisions'); $migration->update_to_0_5_0(); }
function setUp() { parent::setUp(); $this->_setRole('administrator'); $this->create_post_and_children(); $this->persistance = new Persistance(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->head_query = new HeadQuery(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->zip = $this->head_query->by_id($this->gistpen->ID); }
function setUp() { parent::setUp(); $this->_setRole('administrator'); $this->create_post_and_children(); $this->persistance = new Persistance(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->query = new Query(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->adapter = new Adapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->zip = $this->adapter->build('zip')->blank(); $this->file = $this->adapter->build('file')->blank(); }
function setUp() { parent::setUp(); $this->zip = new Zip(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->adapter = new CommitAdapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->time = current_time('mysql'); }
function setUp() { parent::setUp(); }
function setUp() { parent::setUp(); $this->create_post_and_children(); $this->query = new Query(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->migration = new Migration(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->database = new Database(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->adapter = new LanguageAdapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->file = new File(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->adapter = new GistAdapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->mock_commit->shouldReceive('get_description')->once()->andReturn('Post title 1'); }
function setUp() { parent::setUp(); $this->language = new Language(WP_Gistpen::$plugin_name, WP_Gistpen::$version, 'php'); }
function setUp() { parent::setUp(); $this->save = new SaveController(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->database = new Database(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }
function setUp() { parent::setUp(); $this->history = new HistoryCollection(WP_Gistpen::$plugin_name, WP_Gistpen::$version); $this->mock_commit->shouldReceive('get_ID')->andReturn(99)->byDefault(); }
function setUp() { parent::setUp(); $this->create_post_and_children(); $this->content = new Content(WP_Gistpen::$plugin_name, WP_Gistpen::$version); }