/
DependenciesTest.php
69 lines (41 loc) · 1.52 KB
/
DependenciesTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Tests for the SV_WC_Plugin_Dependencies class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v5_11_7\SV_WC_Plugin_Dependencies
*/
class DependenciesTest extends \Codeception\TestCase\WPTestCase {
/** @var \IntegrationTester */
protected $tester;
/** @var \SkyVerge\WooCommerce\TestPlugin\Plugin instance */
protected $plugin;
protected function _before() {
}
protected function _after() {
}
/** Tests *********************************************************************************************************/
/**
* @see \SkyVerge\WooCommerce\PluginFramework\v5_11_7\SV_WC_Plugin_Dependencies::get_active_scripts_optimization_plugins()
*/
public function test_get_active_scripts_optimization_plugins() {
$this->assertEquals( [], $this->get_plugin()->get_dependency_handler()->get_active_scripts_optimization_plugins() );
}
/**
* @see \SkyVerge\WooCommerce\PluginFramework\v5_11_7\SV_WC_Plugin_Dependencies::is_scripts_optimization_plugin_active()
*/
public function test_is_scripts_optimization_plugin_active() {
$this->assertEquals( false, $this->get_plugin()->get_dependency_handler()->is_scripts_optimization_plugin_active() );
}
/** Helper methods ************************************************************************************************/
/**
* Gets the plugin instance.
*
* @return \SkyVerge\WooCommerce\TestPlugin\Plugin
*/
protected function get_plugin() {
if ( null === $this->plugin ) {
$this->plugin = sv_wc_test_plugin();
}
return $this->plugin;
}
}