File tree 3 files changed +9
-9
lines changed
integration/concrete/lockup-base/collect-fees
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ import { Errors } from "src/libraries/Errors.sol";
7
7
import { Integration_Test } from "../../../Integration.t.sol " ;
8
8
9
9
contract CollectFees_Integration_Concrete_Test is Integration_Test {
10
- function test_WhenAdminIsNotContract () external {
10
+ function test_GivenAdminIsNotContract () external {
11
11
_test_CollectFees (users.admin);
12
12
}
13
13
14
- function test_RevertWhen_AdminDoesNotImplementReceiveFunction () external whenAdminIsContract {
14
+ function test_RevertWhen_AdminDoesNotImplementReceiveFunction () external givenAdminIsContract {
15
15
// Transfer the admin to a contract that does not implement the receive function.
16
16
resetPrank ({ msgSender: users.admin });
17
17
lockup.transferAdmin (address (contractWithoutReceive));
@@ -32,7 +32,7 @@ contract CollectFees_Integration_Concrete_Test is Integration_Test {
32
32
lockup.collectFees ();
33
33
}
34
34
35
- function test_WhenAdminImplementsReceiveFunction () external whenAdminIsContract {
35
+ function test_GivenAdminImplementsReceiveFunction () external givenAdminIsContract {
36
36
// Transfer the admin to a contract that implements the receive function.
37
37
resetPrank ({ msgSender: users.admin });
38
38
lockup.transferAdmin (address (contractWithReceive));
Original file line number Diff line number Diff line change 1
1
CollectFees_Integration_Concrete_Test
2
- ├── when admin is not contract
2
+ ├── given admin is not contract
3
3
│ ├── it should transfer fee
4
4
│ ├── it should decrease contract balance to zero
5
5
│ └── it should emit a {CollectFees} event
6
- └── when admin is contract
7
- ├── when admin does not implement receive function
6
+ └── given admin is contract
7
+ ├── given admin does not implement receive function
8
8
│ └── it should revert
9
- └── when admin implements receive function
9
+ └── given admin implements receive function
10
10
├── it should transfer fee
11
11
├── it should decrease contract balance to zero
12
12
└── it should emit a {CollectFees} event
Original file line number Diff line number Diff line change @@ -437,10 +437,10 @@ abstract contract Modifiers is Fuzzers {
437
437
}
438
438
439
439
/*//////////////////////////////////////////////////////////////////////////
440
- WITHDRAW -FEES
440
+ COLLECT -FEES
441
441
//////////////////////////////////////////////////////////////////////////*/
442
442
443
- modifier whenAdminIsContract () {
443
+ modifier givenAdminIsContract () {
444
444
_;
445
445
}
446
446
You can’t perform that action at this time.
0 commit comments