PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.3.48
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.3.48
1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 All 181 releases
disco / vendor / micropackage / requirements / tests / Checker / test-dochooks.php

test-dochooks.php in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.3.48, at vendor/micropackage/requirements/tests/Checker/test-dochooks.php

44 lines 842 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class TestDocHooks
4 *
5 * @package micropackage/requirements
6 */
7
8 namespace Micropackage\Requirements\Test\Checker;
9
10 use Micropackage\Requirements\Requirements;
11 use Micropackage\Requirements\Checker\DocHooks as TestedChecker;
12
13 /**
14 * DocHooks checker test case.
15 */
16 class TestDocHooks extends \WP_UnitTestCase {
17
18 public function setUp() {
19 parent::setUp();
20 $this->checker = new TestedChecker();
21 }
22
23 public function bad_params() {
24 return [
25 [ '5.3' ],
26 [ 1 ],
27 [ [ true ] ],
28 ];
29 }
30
31 public function test_get_name_should_return_valid_name() {
32 $this->assertSame( 'dochooks', $this->checker->get_name() );
33 }
34
35 /**
36 * @dataProvider bad_params
37 * @expectedException Exception
38 */
39 public function test_check_should_throw_exception_if_passed_not_bool_requirement( $param ) {
40 $this->checker->check( $param );
41 }
42
43 }
44