@@ -46,7 +46,7 @@ public function testRunHookEnabled(): void
4646 $ io = $ this ->createIOMock ();
4747 $ config = $ this ->createConfigMock ();
4848 $ configOp = $ this ->createMock (ConfigOperator::class);
49- $ configOp ->expects ($ this ->once ())->method ('getSafely ' )->willReturn ('# ' );
49+ $ configOp ->expects ($ this ->once ())->method ('getSettingSafely ' )->willReturn ('# ' );
5050
5151 $ dummy = new DummyRepo (['hooks ' => ['commit-msg ' => '# hook script ' ]]);
5252 $ repo = $ this ->createRepositoryMock ($ dummy ->getRoot ());
@@ -78,7 +78,7 @@ public function testRunHookSkippedBecauseOfFixup(): void
7878 $ io = $ this ->createIOMock ();
7979 $ config = $ this ->createConfigMock ();
8080 $ configOp = $ this ->createMock (ConfigOperator::class);
81- $ configOp ->expects ($ this ->once ())->method ('getSafely ' )->willReturn ('# ' );
81+ $ configOp ->expects ($ this ->once ())->method ('getSettingSafely ' )->willReturn ('# ' );
8282
8383 $ dummy = new DummyRepo (['hooks ' => ['commit-msg ' => '# hook script ' ]]);
8484 $ repo = $ this ->createRepositoryMock ($ dummy ->getRoot ());
@@ -124,7 +124,7 @@ public function testRunWithoutCommitMsgFile(): void
124124 $ hookConfig ->method ('getActions ' )->willReturn ([$ actionConfig ]);
125125 $ config ->method ('getHookConfigToExecute ' )->willReturn ($ hookConfig );
126126 $ config ->expects ($ this ->atLeastOnce ())->method ('isHookEnabled ' )->willReturn (true );
127- $ configOp ->method ('getSafely ' )->willReturn ('# ' );
127+ $ configOp ->method ('getSettingSafely ' )->willReturn ('# ' );
128128 $ repo ->method ('getConfigOperator ' )->willReturn ($ configOp );
129129 $ io ->expects ($ this ->once ())->method ('getArgument ' )->willReturn ('' );
130130
0 commit comments