Auto commit for release 'develop' on 2024-09-14

This commit is contained in:
github-actions
2024-09-14 06:17:49 +02:00
parent d7f6b4143e
commit bb2270b274
7 changed files with 232 additions and 1121 deletions

View File

@@ -39,12 +39,13 @@ final class AboutControllerTest extends TestCase
use RefreshDatabase;
private $user;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
if (!isset($this->user))
if (!isset($this->user)) {
$this->user = $this->createAuthenticatedUser();
}
$this->actingAs($this->user);
}
@@ -59,7 +60,7 @@ final class AboutControllerTest extends TestCase
'api_version',
'php_version',
'os',
'driver'
'driver',
],
]);
}
@@ -69,8 +70,8 @@ final class AboutControllerTest extends TestCase
$response = $this->getJson(route('api.v1.about.user'));
$response->assertOk();
$response->assertJson(fn(AssertableJson $json) =>
$json
$response->assertJson(
fn (AssertableJson $json) => $json
->where('data.attributes.email', $this->user->email)
->where('data.attributes.role', $this->user->role)
);