mirror of
https://fast.feibisi.com/https://github.com/wp-cli/scaffold-command.git
synced 2025-10-04 17:01:28 +08:00
add test-sample.php file
This commit is contained in:
parent
6051e68f89
commit
4790c2fb73
2 changed files with 11 additions and 0 deletions
|
@ -217,6 +217,7 @@ class Scaffold_Command extends WP_CLI_Command {
|
|||
$to_copy = array(
|
||||
'phpunit.xml' => $plugin_dir,
|
||||
'.travis.yml' => $plugin_dir,
|
||||
'test-sample.php' => $tests_dir,
|
||||
);
|
||||
|
||||
foreach ( $to_copy as $file => $dir ) {
|
||||
|
|
10
templates/test-sample.php
Normal file
10
templates/test-sample.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
class SampleTest extends WP_UnitTestCase {
|
||||
|
||||
function testSample() {
|
||||
// replace this with some actual testing code
|
||||
$this->assertTrue( true );
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue