Scaffolded unit tests

This commit is contained in:
Justin Foell
2018-09-21 10:28:46 -05:00
parent 947b26faeb
commit 438f849fad
6 changed files with 70 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
use \WP_Mock\Tools\TestCase;
class WPStrava_SOMEnglishTest extends TestCase {
public function test_true() {
$som = new WPStrava_SOMEnglish();
$this->assertInstanceOf( 'WPStrava_SOMEnglish', $som );
}
}
+6
View File
@@ -0,0 +1,6 @@
<?php
if ( ! defined( 'WPSTRAVA_PLUGIN_DIR' ) ) define( 'WPSTRAVA_PLUGIN_DIR', dirname( __FILE__ ) . '/../' );
require_once dirname( __FILE__ ) . '/../lib/autoload.php';
WP_Mock::bootstrap();