feat: open the logs to every administrative role
This commit is contained in:
1 parent
ade30c6b06
commit
1a733a6ba6
9 files changed
+28
-22
No files matched your search
@@ -7,7 +7,7 @@ namespace App\Tests\Dashboard;
|
||||
use App\Dashboard\Widget\RecentLogEntriesWidgetProvider;
|
||||
use App\Entity\LogEntry;
|
||||
use App\Repository\LogEntryRepository;
|
||||
use App\Security\Role;
|
||||
use App\Security\Voter\AdministrativeAccessVoter;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
|
||||
@@ -57,7 +57,7 @@ class RecentLogEntriesWidgetProviderTest extends TestCase
|
||||
|
||||
$provider = new RecentLogEntriesWidgetProvider($repository, $this->urlGenerator());
|
||||
|
||||
$this->assertSame(Role::CUSTOMER_EXPERT, $provider->getRequiredRole());
|
||||
$this->assertSame(AdministrativeAccessVoter::ADMINISTRATIVE_ACCESS, $provider->getRequiredRole());
|
||||
$this->assertNotNull($provider->build());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user