// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "forge-std/Test.sol"; import "forge-std/console2.sol"; import "#/extension/ThirdPartyMint.sol"; contract ExampleContract is ThirdPartyMint { constructor(IAccessControl _thirdParty) ThirdPartyMint(_thirdParty) {} function _beforeChangeThirdPartySetup(IAccessControl) internal view override { console.log("before change third party"); } } contract ThirdPartyMintTest is Test { ExampleContract c; address public constant THIRD_PARTY = 0x0000000000000000000000000000000000010001; address public constant NEW_THIRD_PARTY = 0x0000000000000000000000000000000000010002; function setUp() public { c = new ExampleContract(IAccessControl(THIRD_PARTY)); } function testCanChangeThirdPartySetup() public { c.changeThirdPartySetup(IAccessControl(NEW_THIRD_PARTY)); } }