| 1 |
<?php |
| 2 |
|
| 3 |
namespace Vimeography_Unit_Tests; |
| 4 |
|
| 5 |
class Tests_Admin_Menu extends Vimeography_UnitTestCase { |
| 6 |
|
| 7 |
protected $_object; |
| 8 |
|
| 9 |
/** |
| 10 |
* Runs before every test. |
| 11 |
* Think of it as emulating what would usually happen once the plugin is activated on a Wordpress site. |
| 12 |
*/ |
| 13 |
public function setUp() |
| 14 |
{ |
| 15 |
parent::setUp(); |
| 16 |
$this->_object = new \Vimeography_Admin_Menu; |
| 17 |
} |
| 18 |
|
| 19 |
public function test_admin_menu_hook_was_added() |
| 20 |
{ |
| 21 |
$this->assertGreaterThan(0, has_action('admin_menu', array($this->_object, 'vimeography_add_menu') ) ); |
| 22 |
} |
| 23 |
|
| 24 |
public function test_vimeography_menu_was_added() { |
| 25 |
|
| 26 |
////$GLOBALS['admin_page_hooks'] |
| 27 |
} |
| 28 |
|
| 29 |
// public function tearDown() { |
| 30 |
|
| 31 |
// } |
| 32 |
|
| 33 |
} |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|