-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathGatewayPluginTest.php
More file actions
60 lines (35 loc) · 1.05 KB
/
GatewayPluginTest.php
File metadata and controls
60 lines (35 loc) · 1.05 KB
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
<?php
/**
* Tests for the gateway plugin class.
*
* @see \SkyVerge\WooCommerce\PluginFramework\v6_0_2\SV_WC_Payment_Gateway_Plugin
*/
class GatewayPluginTest extends \Codeception\TestCase\WPTestCase {
/** @var \IntegrationTester */
protected $tester;
/** @var \SkyVerge\WooCommerce\GatewayTestPlugin\Plugin instance */
protected $plugin;
protected function _before() {
}
protected function _after() {
}
/** Tests *********************************************************************************************************/
/**
* Tests get_id.
*/
public function test_get_id() {
$this->assertEquals( 'gateway_test_plugin', $this->get_plugin()->get_id() );
}
/** Helper methods ************************************************************************************************/
/**
* Gets the plugin instance.
*
* @return \SkyVerge\WooCommerce\GatewayTestPlugin\Plugin
*/
protected function get_plugin() {
if ( null === $this->plugin ) {
$this->plugin = sv_wc_gateway_test_plugin();
}
return $this->plugin;
}
}