Skip to content

Commit

Permalink
Finishing new stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jan 30, 2024
1 parent a85cf30 commit ca29f44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .scaffolder/feature/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ files:
- source: feature.php.hbs
destination: src/features/{{ wpClassFilename inputs.featureName }}
- source: test.php.hbs
if: {{ inputs.tests }}
if: "{{ inputs.tests }}"
destination: tests/Features/{{ psrClassFilename inputs.featureName suffix="Test.php" }}
2 changes: 1 addition & 1 deletion .scaffolder/feature/feature.php.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Create_WordPress_Plugin
*/

namespace Create_WordPress_Plugin\{{ wpNamespace inputs.featureName prefix="Features" }};
namespace Create_WordPress_Plugin\\{{ wpNamespace inputs.featureName prefix="Features" }};

use Alley\WP\Types\Feature;

Expand Down
6 changes: 3 additions & 3 deletions .scaffolder/feature/test.php.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
* @package create-wordpress-plugin
*/

namespace Create_WordPress_Plugin\{{ wpNamespace inputs.featureName prefix="Tests\\Features" }};
namespace Create_WordPress_Plugin\\{{ wpNamespace inputs.featureName prefix="Tests\Features" }};

use Create_WordPress_Plugin\Tests\TestCase;
use Create_WordPress_Plugin\{{ wpNamespace inputs.featureName prefix="Features" }}\{{ wpClassName inputs.featureName }};
use Create_WordPress_Plugin\\{{ wpNamespace inputs.featureName prefix="Features" }}\\{{ wpClassName inputs.featureName }};

/**
* {{ replace (psrClassName inputs.featureName) "_" " " }} Test for the {{ wpClassName inputs.featureName }} class.
*
* @link https://mantle.alley.com/docs/testing
*/
class {{ psrClassName inputs.featureName }} extends TestCase {
class {{ psrClassName inputs.featureName suffix="Test" }} extends TestCase {
/**
* An example test for the feature.
*/
Expand Down

0 comments on commit ca29f44

Please sign in to comment.