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'; }
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(); }
/** * 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); }
public function setUp() { parent::setUp(); $this->pluginInstance = new \AngularPress\Plugin(); }
/** * 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); }
/** * Setup a test method. */ public function setUp() { parent::setUp(); $this->fragment = new Fragment($this->cache_key, $this->cache_expires); }
/** * Set up some test mocks */ public function setUp() { parent::setUp(); $_COOKIE = array(); $_POST = array(); }