Skip to content

Commit

Permalink
fix wpcs in theme tests generation
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith committed Jan 27, 2018
1 parent 9d58c40 commit da750d2
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 da750d2

Please sign in to comment.