+
-
-
-
-
-
+
-
-
-
-
diff --git a/tests/Service/Access/PermissionGatewayTest.php b/tests/Service/Access/PermissionGatewayTest.php
index 1d54f27..9581fcc 100644
--- a/tests/Service/Access/PermissionGatewayTest.php
+++ b/tests/Service/Access/PermissionGatewayTest.php
@@ -3,13 +3,14 @@
namespace MintyPHP\Tests\Service\Access;
use MintyPHP\Service\Access\PermissionGateway;
+use MintyPHP\Service\Access\PermissionService;
use PHPUnit\Framework\TestCase;
class PermissionGatewayTest extends TestCase
{
public function testUserHasDelegatesToService(): void
{
- $permissionService = $this->createMock('MintyPHP\\Service\\Access\\PermissionService');
+ $permissionService = $this->createMock(PermissionService::class);
$permissionService->expects($this->once())
->method('userHas')
->with(7, 'users.view')
@@ -21,7 +22,7 @@ class PermissionGatewayTest extends TestCase
public function testListPagedDelegatesToService(): void
{
- $permissionService = $this->createMock('MintyPHP\\Service\\Access\\PermissionService');
+ $permissionService = $this->createMock(PermissionService::class);
$permissionService->expects($this->once())
->method('listPaged')
->with(['limit' => 10])
diff --git a/tests/Service/Import/ImportServiceTest.php b/tests/Service/Import/ImportServiceTest.php
index 3afd2f1..a9fa0ee 100644
--- a/tests/Service/Import/ImportServiceTest.php
+++ b/tests/Service/Import/ImportServiceTest.php
@@ -120,8 +120,7 @@ class ImportServiceTest extends TestCase
$stateStore = $stateStore ?? $this->createMock(ImportStateStoreService::class);
$permissionGateway = $this->createMock(PermissionGateway::class);
$permissionGateway->method('userHas')->willReturn(false);
- $settingService = $this->createMock('MintyPHP\\Service\\Settings\\SettingService');
- $settingGateway = new SettingGateway($settingService);
+ $settingGateway = $this->createMock(SettingGateway::class);
$userScopeGateway = $this->createMock(UserScopeGateway::class);
$userScopeGateway->method('hasGlobalAccess')->willReturn(false);
$userScopeGateway->method('getUserTenantIds')->willReturn([]);
diff --git a/tests/Service/Settings/SettingGatewayTest.php b/tests/Service/Settings/SettingGatewayTest.php
index 671938d..63d85dd 100644
--- a/tests/Service/Settings/SettingGatewayTest.php
+++ b/tests/Service/Settings/SettingGatewayTest.php
@@ -3,13 +3,14 @@
namespace MintyPHP\Tests\Service\Settings;
use MintyPHP\Service\Settings\SettingGateway;
+use MintyPHP\Service\Settings\SettingService;
use PHPUnit\Framework\TestCase;
class SettingGatewayTest extends TestCase
{
public function testGetDefaultTenantIdDelegatesToService(): void
{
- $settingService = $this->createMock('MintyPHP\\Service\\Settings\\SettingService');
+ $settingService = $this->createMock(SettingService::class);
$settingService->expects($this->once())
->method('getDefaultTenantId')
->willReturn(42);
@@ -20,7 +21,7 @@ class SettingGatewayTest extends TestCase
public function testSetDefaultRoleIdDelegatesToService(): void
{
- $settingService = $this->createMock('MintyPHP\\Service\\Settings\\SettingService');
+ $settingService = $this->createMock(SettingService::class);
$settingService->expects($this->once())
->method('setDefaultRoleId')
->with(7, null)
diff --git a/web/css/vendor-overrides/swagger-ui.css b/web/css/vendor-overrides/swagger-ui.css
index 56c10e3..fe6b6f3 100644
--- a/web/css/vendor-overrides/swagger-ui.css
+++ b/web/css/vendor-overrides/swagger-ui.css
@@ -111,10 +111,36 @@
color: var(--app-color);
}
+ /* Reset all Pico CSS button styles that bleed into Swagger UI */
.swagger-ui button {
cursor: pointer;
background: transparent;
border: 0;
+ padding: 0;
+ margin: 0;
+ color: inherit;
+ font-size: inherit;
+ font-weight: inherit;
+ font-family: inherit;
+ line-height: inherit;
+ border-radius: 0;
+ box-shadow: none;
+ text-transform: none;
+ /* Reset CSS custom properties set by app base styles on all buttons */
+ --app-background-color: initial;
+ --app-border-color: initial;
+ --app-color: initial;
+ --app-box-shadow: initial;
+ }
+
+ /* Restore sizing/appearance for Swagger UI action buttons (.btn) */
+ .swagger-ui .btn {
+ padding: 6px 23px;
+ font-size: 14px;
+ font-weight: 700;
+ border: 2px solid transparent;
+ border-radius: var(--app-border-radius);
+ background: transparent;
}
.swagger-ui .opblock .opblock-summary-description {