$connection]); $resolver->setDefaultConnection('mocked'); Model::setConnectionResolver($resolver); return $mock; } /** * Resets the mock state. */ protected function tearDownPdoMock(): void { if (!self::$initialResolver) { return; } Model::setConnectionResolver(self::$initialResolver); self::$initialResolver = null; } }