Skip to content

Commit

Permalink
Merge pull request #121 from thrijith/GH-109-theme-tests
Browse files Browse the repository at this point in the history
fix wpcs in theme-tests generation
  • Loading branch information
gitlost authored Feb 21, 2018
2 parents a56e5d2 + 6a266fc commit 8615bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions templates/theme-bootstrap.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ if ( ! file_exists( $_tests_dir . '/includes/functions.php' ) ) {
// Give access to tests_add_filter() function.
require_once $_tests_dir . '/includes/functions.php';

/**
* Registers theme
*/
function _register_theme() {
$theme_dir = dirname( __DIR__ );
Expand Down
2 changes: 1 addition & 1 deletion templates/theme-test-sample.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SampleTest extends WP_UnitTestCase {
/**
* A single example test.
*/
function test_sample() {
public function test_sample() {
// Replace this with some actual testing code.
$this->assertTrue( true );
}
Expand Down

0 comments on commit 8615bb2

Please sign in to comment.