From 6a266fc857e4d6a808c3e3b3fddd8bd3a0bc8444 Mon Sep 17 00:00:00 2001 From: Thrijith Thankachan Date: Sun, 28 Jan 2018 00:54:46 +0530 Subject: [PATCH] fix wpcs in theme tests generation --- templates/theme-bootstrap.mustache | 3 +++ templates/theme-test-sample.mustache | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/theme-bootstrap.mustache b/templates/theme-bootstrap.mustache index d8e135580..d320dcb44 100644 --- a/templates/theme-bootstrap.mustache +++ b/templates/theme-bootstrap.mustache @@ -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__ ); diff --git a/templates/theme-test-sample.mustache b/templates/theme-test-sample.mustache index ec78927c6..fb44cdc66 100644 --- a/templates/theme-test-sample.mustache +++ b/templates/theme-test-sample.mustache @@ -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 ); }