Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $this->shortcodeParser = new \AngularPress\ShortcodeParser();
     $this->imageId = 4;
     $this->imageSize = 'thumbnail';
     $this->imageWidth = 100;
     $this->imageHeight = 100;
     $this->imageLink = 'post';
 }
Exemplo n.º 2
0
 public function setUp()
 {
     if (!empty($this->test_files)) {
         foreach ($this->test_files as $file) {
             if (file_exists(PROJECT . $file)) {
                 require_once PROJECT . $file;
             }
         }
     }
     parent::setUp();
 }
Exemplo n.º 3
0
 /**
  * Setup a test method.
  */
 public function setUp()
 {
     parent::setUp();
     $this->callback = function ($atts, $content = '') {
         if (!empty($content)) {
             return $atts['test'] . $content;
         }
         return $atts['test'];
     };
     $this->shortcode = new \Syllables\Shortcode($this->tag, $this->callback);
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $this->pluginInstance = new \AngularPress\Plugin();
 }
Exemplo n.º 5
0
 /**
  * Setup a test method.
  *
  * Mocks WordPress APIs.
  */
 public function setUp()
 {
     parent::setUp();
     $this->base_path = __DIR__ . '/templates';
     $this->queried_object = (object) array('has_archive' => false, 'name' => null, 'post_type' => (object) array('name' => null), 'post_name' => null, 'slug' => null, 'taxonomy' => null, 'term' => null);
 }
 public function setUp()
 {
     parent::setUp();
     RouvenHurling\Nonces\time(self::$time);
 }
Exemplo n.º 7
0
 /**
  * Setup a test method.
  */
 public function setUp()
 {
     parent::setUp();
     $this->fragment = new Fragment($this->cache_key, $this->cache_expires);
 }
Exemplo n.º 8
0
 /**
  * Set up some test mocks
  */
 public function setUp()
 {
     parent::setUp();
     $_COOKIE = array();
     $_POST = array();
 }