Select Git revision
ExampleTest.php
-
Bartek Jaskulski authored
Signed-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
Bartek Jaskulski authoredSigned-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
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 );
}
}