@@ -1198,6 +1198,8 @@ public function testConnectBuiltPackageFromBuildPackageFailsDebugOff(): void
1198
1198
$ package1 = $ this ->stubSimplePackage ('1 ' );
1199
1199
$ package2 = $ this ->stubSimplePackage ('2 ' );
1200
1200
1201
+ \Mockery::mock ('alias: ' . \WP_Error::class);
1202
+
1201
1203
Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
1202
1204
->once ()
1203
1205
->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
@@ -1216,6 +1218,8 @@ public function testConnectBuiltPackageFromBuildPackageFailsDebugOn(): void
1216
1218
$ package1 = $ this ->stubSimplePackage ('1 ' );
1217
1219
$ package2 = $ this ->stubSimplePackage ('2 ' , true );
1218
1220
1221
+ \Mockery::mock ('alias: ' . \WP_Error::class);
1222
+
1219
1223
Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
1220
1224
->once ()
1221
1225
->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
@@ -1235,6 +1239,8 @@ public function testConnectBuiltPackageFromBootedPackageFailsDebugOff(): void
1235
1239
$ package1 = $ this ->stubSimplePackage ('1 ' );
1236
1240
$ package2 = $ this ->stubSimplePackage ('2 ' );
1237
1241
1242
+ \Mockery::mock ('alias: ' . \WP_Error::class);
1243
+
1238
1244
Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
1239
1245
->once ()
1240
1246
->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
@@ -1253,6 +1259,8 @@ public function testConnectBuiltPackageFromBootedPackageFailsDebugOn(): void
1253
1259
$ package1 = $ this ->stubSimplePackage ('1 ' );
1254
1260
$ package2 = $ this ->stubSimplePackage ('2 ' , true );
1255
1261
1262
+ \Mockery::mock ('alias: ' . \WP_Error::class);
1263
+
1256
1264
Monkey \Actions \expectDone ($ package2 ->hookName (Package::ACTION_FAILED_CONNECT ))
1257
1265
->once ()
1258
1266
->with ($ package1 ->name (), \Mockery::type (\WP_Error::class));
0 commit comments