Esempio n. 1
0
 function setUp()
 {
     global $title;
     parent::setUp();
     $this->settings = new Settings(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
     $title = "Settings page";
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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');
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
 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();
 }
Esempio n. 7
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);
 }
Esempio n. 8
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->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();
 }
Esempio n. 9
0
 function setUp()
 {
     parent::setUp();
     $this->zip = new Zip(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
 }
Esempio n. 10
0
 function setUp()
 {
     parent::setUp();
     $this->adapter = new CommitAdapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
     $this->time = current_time('mysql');
 }
Esempio n. 11
0
 function setUp()
 {
     parent::setUp();
 }
Esempio n. 12
0
 function setUp()
 {
     parent::setUp();
     $this->create_post_and_children();
     $this->query = new Query(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
 }
Esempio n. 13
0
 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);
 }
Esempio n. 14
0
 function setUp()
 {
     parent::setUp();
     $this->adapter = new LanguageAdapter(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
 }
Esempio n. 15
0
 function setUp()
 {
     parent::setUp();
     $this->file = new File(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
 }
Esempio n. 16
0
 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');
 }
Esempio n. 17
0
 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);
 }
Esempio n. 19
0
 function setUp()
 {
     parent::setUp();
     $this->history = new HistoryCollection(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
     $this->mock_commit->shouldReceive('get_ID')->andReturn(99)->byDefault();
 }
Esempio n. 20
0
 function setUp()
 {
     parent::setUp();
     $this->create_post_and_children();
     $this->content = new Content(WP_Gistpen::$plugin_name, WP_Gistpen::$version);
 }