Skip to content

Commit

Permalink
Add @group test (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and sarjona committed Apr 3, 2024
1 parent be8be3d commit 5529ded
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions moodle/Tests/Sniffs/Commenting/ValidTagsSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public static function provider(): array {
'fixturePath' => 'lib/tests/example_test.php',
'fixtureSource' => 'unit_test',
'errors' => [
11 => 'Incorrect docblock tag "@returns". Should be "@return"',
12 => 'Invalid docblock tag "@void"',
55 => 'Invalid docblock tag "@small"',
56 => 'Invalid docblock tag "@zzzing"',
57 => 'Invalid docblock tag "@inheritdoc"',
12 => 'Incorrect docblock tag "@returns". Should be "@return"',
13 => 'Invalid docblock tag "@void"',
58 => 'Invalid docblock tag "@small"',
59 => 'Invalid docblock tag "@zzzing"',
60 => 'Invalid docblock tag "@inheritdoc"',
],
'warnings' => [],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/**
* @covers \some_class
* @group some_group
*/
class some_test extends \advanced_testcase {
/**
Expand Down Expand Up @@ -42,6 +43,8 @@ public function also_all_valid_tags() {

/**
* Some more valid tags, because we are under tests area.
*
* @group some_group
*/
public function valid_inline_tags() {
// @codeCoverageIgnoreStart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/**
* @covers \some_class
* @group some_group
*/
class some_test extends \advanced_testcase {
/**
Expand Down Expand Up @@ -41,6 +42,8 @@ class some_test extends \advanced_testcase {

/**
* Some more valid tags, because we are under tests area.
*
* @group some_group
*/
public function valid_inline_tags() {
// @codeCoverageIgnoreStart
Expand Down

0 comments on commit 5529ded

Please sign in to comment.