fix: menu location assignment is destructive, neutral download hint in media preview
This commit is contained in:
@@ -122,4 +122,11 @@ final class MenuAssignLocationAbilityTest extends TestCase
|
||||
|
||||
self::assertSame('lit_forbidden', $ability->permission($input)->get_error_code());
|
||||
}
|
||||
|
||||
public function testIsDestructiveBecauseItReplacesTheMenuOfTheLocation(): void
|
||||
{
|
||||
$ability = new MenuAssignLocationAbility(Mockery::mock(ChangeLog::class));
|
||||
|
||||
self::assertSame(['readonly' => false, 'destructive' => true, 'idempotent' => true], $ability->annotations());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user