PluginProbe
Vimeography: Vimeo Video Gallery WordPress Plugin / 2.2
Vimeography: Vimeo Video Gallery WordPress Plugin v2.2
2.4.9 2.4.8 trunk 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.6 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.6.8.1 0.6.9 0.6.9.1 0.6.9.2 0.7 0.8 All 103 releases
vimeography / tests / unit-tests / test-core.php

test-core.php in Vimeography: Vimeo Video Gallery WordPress Plugin 2.2, at tests/unit-tests/test-core.php

46 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Vimeography_Unit_Tests;
4
5 class Tests_Core extends Vimeography_UnitTestCase {
6
7 protected $_class;
8 protected $_gallery_atts;
9
10 /**
11 * Runs before every test.
12 * Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site.
13 */
14 public function setUp()
15 {
16 parent::setUp();
17 require_once VIMEOGRAPHY_PATH . 'lib/core.php';
18 require_once VIMEOGRAPHY_PATH . 'lib/core/basic.php';
19
20 $this->_gallery_atts = array(
21 'theme' => 'bugsauce',
22 'featured' => '',
23 'source' => '/channels/staffpicks/videos',
24 'limit' => 25,
25 'cache' => 3600,
26 'width' => '',
27 );
28
29 $this->_class = new \Vimeography_Core_Basic($this->_gallery_atts);
30 }
31
32 public function test_vimeography_admin_plugins_instance() {
33 $this->assertClassHasAttribute( '_vimeo', 'Vimeography_Core_Basic' );
34 }
35
36 /**
37 * @covers Vimeography_Core::_endpoint
38 */
39 // public function test_vimeography_endpoint() {
40 // $this->assertEquals('/channels/staffpicks/videos', $this->_class->_endpoint);
41 // }
42
43 public function tearDown() { }
44
45 }
46