@@ -1198,6 +1198,8 @@ public function testConnectBuiltPackageFromBuildPackageFailsDebugOff(): void
11981198 $ package1 = $ this ->stubSimplePackage ('1 ' );
11991199 $ package2 = $ this ->stubSimplePackage ('2 ' );
12001200
1201+ \Mockery::mock ('alias: ' . \WP_Error::class);
1202+
12011203 Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
12021204 ->once ()
12031205 ->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
@@ -1216,6 +1218,8 @@ public function testConnectBuiltPackageFromBuildPackageFailsDebugOn(): void
12161218 $ package1 = $ this ->stubSimplePackage ('1 ' );
12171219 $ package2 = $ this ->stubSimplePackage ('2 ' , true );
12181220
1221+ \Mockery::mock ('alias: ' . \WP_Error::class);
1222+
12191223 Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
12201224 ->once ()
12211225 ->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
@@ -1235,6 +1239,8 @@ public function testConnectBuiltPackageFromBootedPackageFailsDebugOff(): void
12351239 $ package1 = $ this ->stubSimplePackage ('1 ' );
12361240 $ package2 = $ this ->stubSimplePackage ('2 ' );
12371241
1242+ \Mockery::mock ('alias: ' . \WP_Error::class);
1243+
12381244 Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
12391245 ->once ()
12401246 ->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
@@ -1253,6 +1259,8 @@ public function testConnectBuiltPackageFromBootedPackageFailsDebugOn(): void
12531259 $ package1 = $ this ->stubSimplePackage ('1 ' );
12541260 $ package2 = $ this ->stubSimplePackage ('2 ' , true );
12551261
1262+ \Mockery::mock ('alias: ' . \WP_Error::class);
1263+
12561264 Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
12571265 ->once ()
12581266 ->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
0 commit comments