Skip to content

Commit

Permalink
Add test from Codeception#6302
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHansmannAldi committed Dec 21, 2021
1 parent adca05d commit 08d3edb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/Codeception/Lib/GroupManagerTest.php
Expand Up @@ -66,7 +66,17 @@ public function testGroupsFromArrayOnWindows()
$test = $this->makeTestCase('tests/data/group_manager_test/WinTest.php');
$this->assertContains('important', $this->manager->groupsForTest($test));
}

public function testGroupsByPatternWithMultipleDigits()
{
$this->manager = new GroupManager(['group_chunk_*' => 'tests/data/group_manager_test/group_chunk_*']);
$test1 = $this->makeTestCase('tests/data/group_manager_test/UserTest.php');
$test2 = $this->makeTestCase('tests/data/group_manager_test/PostTest.php');

$this->assertContains('group_chunk_1_1', $this->manager->groupsForTest($test1));
$this->assertContains('group_chunk_1_2', $this->manager->groupsForTest($test2));
}

public function testGroupsByPattern()
{
$this->manager = new GroupManager(['group_*' => 'tests/data/group_manager_test/group_*']);
Expand Down

0 comments on commit 08d3edb

Please sign in to comment.