/**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     require_once VIMEOGRAPHY_PATH . 'lib/admin/base.php';
     require_once VIMEOGRAPHY_PATH . 'lib/admin/controllers/gallery/new.php';
     $this->_class = new \Vimeography_Gallery_New();
 }
Esempio n. 2
0
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     require_once VIMEOGRAPHY_PATH . 'lib/core.php';
     require_once VIMEOGRAPHY_PATH . 'lib/core/basic.php';
     $this->_gallery_atts = array('theme' => 'bugsauce', 'featured' => '', 'source' => '/channels/staffpicks/videos', 'limit' => 9999, 'cache' => 3600, 'width' => '');
     $this->_class = new \Vimeography_Core_Basic($this->_gallery_atts);
 }
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->_vimeography = \Vimeography::get_instance();
     // $z->installation_housekeeping();
     // update_option('zam_options', array(
     //     'zam_twitter_id' => 'Wern_Ancheta'
     // ));
     //update_option('vimeography_db_version', VIMEOGRAPHY_VERSION);
 }
Esempio n. 4
0
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_class = new \Vimeography_Update();
     $this->_addons = \Vimeography::get_instance()->addons;
     $entry = new \stdClass();
     $entry->activation_key = 'ABCDEFED12345678';
     $entry->product_name = 'Journey';
     $entry->plugin_name = 'vimeography-journey';
     $this->_fixture_activation_keys[] = $entry;
     $bugsauce = array('name' => 'Bugsauce', 'theme-uri' => 'vimeography.com/themes/bugsauce', 'version' => '1.0.2', 'description' => 'cool theme.', 'author' => 'Dave Kiss', 'author-uri' => 'http://davekiss.com', 'basename' => 'vimeography-bugsauce/vimeography-bugsauce.php', 'slug' => 'vimeography-bugsauce', 'thumbnail' => 'path/to/thumbnail.jpg', 'file_path' => realpath(dirname(__FILE__) . '/../fixtures/vimeography-journey/vimeography-journey.php'), 'plugin_path' => realpath(dirname(__FILE__) . '/../fixtures/vimeography-journey/'), 'type' => 'theme', 'partials_path' => 'path/to/partials', 'settings_file' => realpath(dirname(__FILE__) . '/../fixtures/vimeography-journey/settings.php'));
     $journey = array('name' => 'Journey', 'theme-uri' => 'vimeography.com/themes/journey', 'version' => '1.0.5', 'description' => 'cool theme.', 'author' => 'Dave Kiss', 'author-uri' => 'http://davekiss.com', 'basename' => 'vimeography-journey/vimeography-journey.php', 'slug' => 'vimeography-journey', 'thumbnail' => 'path/to/thumbnail.jpg', 'file_path' => realpath(dirname(__FILE__) . '/../fixtures/vimeography-journey/vimeography-journey.php'), 'plugin_path' => realpath(dirname(__FILE__) . '/../fixtures/vimeography-journey/'), 'type' => 'theme', 'partials_path' => 'path/to/partials', 'settings_file' => realpath(dirname(__FILE__) . '/../fixtures/vimeography-journey/settings.php'));
     $this->_addons->themes[0] = $bugsauce;
     $this->_addons->themes[] = $journey;
     $this->_addons->installed_addons[0] = $bugsauce;
     $this->_addons->installed_addons[] = $journey;
 }
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_class = new \Vimeography_Shortcode();
     $this->_gallery_atts = array('theme' => 'bugsauce', 'featured' => '', 'source' => 'https://vimeo.com/channels/staffpicks/', 'limit' => 9999, 'cache' => 3600, 'width' => '');
 }
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     require_once VIMEOGRAPHY_PATH . 'lib/admin/base.php';
     $this->_object = new \Vimeography_Base();
 }
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_object = new \Vimeography_Admin_Menu();
 }
Esempio n. 8
0
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  */
 public function setUp()
 {
     parent::setUp();
     $this->_class = new \Vimeography_Addons();
     $this->_bugsauce_path = realpath(dirname(__FILE__) . '/../../vimeography-bugsauce/vimeography-bugsauce.php');
 }
Esempio n. 9
0
 /**
  * Runs before every test.
  * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
  *
  */
 public function setUp()
 {
     parent::setUp();
     $this->_object = new \Vimeography_Init();
 }