File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 53
53
<rule ref =" Squiz.Commenting.InlineComment" >
54
54
<exclude-pattern >src/assets.php</exclude-pattern >
55
55
</rule >
56
+
57
+ <rule ref =" WordPress.Files.FileName" >
58
+ <exclude-pattern >tests/*</exclude-pattern >
59
+ </rule >
56
60
</ruleset >
Original file line number Diff line number Diff line change 31
31
},
32
32
"sort-packages" : true
33
33
},
34
+ "autoload-dev" : {
35
+ "psr-4" : {
36
+ "Create_WordPress_Plugin\\ Tests\\ " : " tests"
37
+ }
38
+ },
34
39
"extra" : {
35
40
"wordpress-autoloader" : {
36
41
"autoload" : {
Original file line number Diff line number Diff line change 9
9
>
10
10
<testsuites >
11
11
<testsuite name =" Feature" >
12
- <directory suffix =" .php" >tests/feature </directory >
12
+ <directory suffix =" .php" >tests/Feature </directory >
13
13
</testsuite >
14
14
<testsuite name =" Unit" >
15
- <directory suffix =" .php" >tests/unit </directory >
15
+ <directory suffix =" .php" >tests/Unit </directory >
16
16
</testsuite >
17
17
</testsuites >
18
18
</phpunit >
Original file line number Diff line number Diff line change 7
7
8
8
namespace Create_WordPress_Plugin \Tests \Feature ;
9
9
10
- use Create_WordPress_Plugin \Tests \Test_Case ;
10
+ use Create_WordPress_Plugin \Tests \TestCase ;
11
11
12
12
/**
13
13
* A test suite for an example feature.
14
14
*
15
15
* @link https://mantle.alley.com/testing/test-framework.html
16
16
*/
17
- class Example_Feature_Test extends Test_Case {
17
+ class ExampleFeatureTest extends TestCase {
18
18
/**
19
19
* An example test for the example feature. In practice, this should be updated to test an aspect of the feature.
20
20
*/
Original file line number Diff line number Diff line change 12
12
/**
13
13
* Create WordPress Plugin Base Test Case
14
14
*/
15
- abstract class Test_Case extends TestkitTest_Case {
15
+ abstract class TestCase extends TestkitTest_Case {
16
16
17
17
}
Original file line number Diff line number Diff line change 14
14
*
15
15
* @link https://mantle.alley.com/testing/test-framework.html
16
16
*/
17
- class Example_Unit_Test extends TestCase {
17
+ class ExampleUnitTest extends TestCase {
18
18
/**
19
19
* An example unit test. In practice, this should be updated to test a function in isolation.
20
20
*/
You can’t perform that action at this time.
0 commit comments