Skip to content

Commit 139c120

Browse files
[5.x] Cleanup roles after running SitesTest@gets_authorized_sites (#11738)
1 parent 573d366 commit 139c120

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Sites/SitesTest.php

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Tests\Sites;
44

55
use Illuminate\Support\Collection;
6+
use Illuminate\Support\Facades\File;
67
use PHPUnit\Framework\Attributes\Test;
78
use Statamic\Facades\Role;
89
use Statamic\Facades\User;
@@ -35,6 +36,13 @@ public function setUp(): void
3536
]);
3637
}
3738

39+
public function tearDown(): void
40+
{
41+
File::delete(resource_path('users/roles.yaml'));
42+
43+
parent::tearDown();
44+
}
45+
3846
#[Test]
3947
public function gets_all_sites()
4048
{

0 commit comments

Comments
 (0)