diff --git a/test/bridge/integration/pause-enforcer/set-config/setConfig.PauseEnforcer.t.sol b/test/bridge/integration/pause-enforcer/set-config/setConfig.PauseEnforcer.t.sol new file mode 100644 index 00000000..e9bde218 --- /dev/null +++ b/test/bridge/integration/pause-enforcer/set-config/setConfig.PauseEnforcer.t.sol @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import { GlobalProposal } from "@ronin/contracts/libraries/GlobalProposal.sol"; +import { ContractType } from "@ronin/contracts/utils/ContractType.sol"; +import "../../BaseIntegration.t.sol"; + +contract SetConfig_PauseEnforcer_Test is BaseIntegration_Test { + function setUp() public virtual override { + super.setUp(); + _config.switchTo(Network.RoninLocal.key()); + } + + function test_configPauseEnforcerContract() public { + address pauseEnforcer = _roninGatewayV3.emergencyPauser(); + assertEq(pauseEnforcer, address(_roninPauseEnforcer)); + } + + function test_configBridgeContract() public { + address bridgeContract = address(_roninPauseEnforcer.target()); + + assertEq(bridgeContract, address(_roninGatewayV3)); + } + + function test_sentryEnforcerRole() public { + bool isSentryRole = + _roninPauseEnforcer.hasRole(_roninPauseEnforcer.SENTRY_ROLE(), _param.roninPauseEnforcer.sentries[0]); + + assertEq(isSentryRole, true); + } +}