Skip to content
Snippets Groups Projects
Select Git revision
  • 57fd835b3662fda6b48acf6eda804de52528f428
  • master default protected
  • fix/woo-stubs-dir
  • default-packages
  • use-internal-packages
  • update-setup
  • feature/wpdesk-cs
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3
  • 2.2.1
  • 2.2
  • 2.1
  • 2.0
  • 1.10.15
  • 1.10.12
  • 1.10.8
  • 1.10.7
  • 1.10.6
  • 1.10.5
  • 1.10.3
  • 1.10.2
27 results

ExampleTest.php

Blame
  • ExampleTest.php 1.05 KiB
    <?php
    
    namespace unit;
    
    use Mockery;
    use WP_Mock;
    use WP_Mock\Tools\TestCase;
    
    class ExampleTest extends TestCase {
    	// private $test_class_under_tests;
    
    	public function setUp(): void {
    		WP_Mock::setUp();
    
    //		$example = Mockery::mock( class );
    //		$this->test_class_under_tests =
    	}
    
    	public function tearDown(): void {
    		WP_Mock::tearDown();
    	}
    //
    //	public function testShouldImplementsHookable() {
    //		// Then
    //		$this->assertInstanceOf( Hookable::class, $this->test_class_under_tests );
    //	}
    //
    //	public function testShouldAddHooks() {
    //		// Expects
    //		WP_Mock::expectFilterAdded( 'woocommerce_get_sections_shipping', [ $this->test_class_under_tests, 'add_section_to_array' ] );
    //		WP_Mock::expectFilterAdded( 'woocommerce_get_settings_shipping', [ $this->test_class_under_tests, 'get_section_settings_fields' ], 10, 2 );
    //
    //		// When
    //		$this->test_class_under_tests->hooks();
    //
    //		// Then
    //		$this->assertTrue( true );
    //	}
    
    	public function testShouldReturnTrueAlways() {
    		// Expects.
    
    		// Given.
    
    		// When.
    
    		// Then.
    		$this->assertTrue( true );
    	}
    }