Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 7154a51

Browse files
committed
add testsuite
1 parent ec28829 commit 7154a51

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"sort-packages": true
3636
},
3737
"require-dev": {
38+
"orchestra/testbench": "^6.20",
3839
"phpunit/phpunit": "^9.5"
3940
}
4041
}

tests/PermissionsTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<?php
2+
23
namespace Permissions\Tests;
34

5+
use LLoadoutInforce\Services\Grouper;
46
use PHPUnit\Framework\TestCase;
57

68

7-
class Permissions extends TestCase
9+
class PermissionsTest extends TestCase
810
{
911
/** @test */
1012
public function test()
1113
{
12-
dd("initialised");
14+
$grouper = app(Grouper::class);
15+
16+
$grouped = $grouper->exec(collect(['string.string', 'otherstring.otherstring']));
17+
$this->assertIsArray($grouped);
18+
$this->assertCount(2, $grouped);
1319
}
1420
}

0 commit comments

Comments
 (0)