Skip to content

Commit

Permalink
remove deprecated clases in favor of new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Oct 13, 2024
1 parent 40c2cb3 commit 6c0725c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/Feature/InvoiceFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

namespace PhpLightningTest\Feature;

use Gacela\Framework\AbstractDependencyProvider;
use Gacela\Framework\AbstractProvider;
use Gacela\Framework\Bootstrap\GacelaConfig;
use Gacela\Framework\ClassResolver\GlobalInstance\AnonymousGlobal;
use Gacela\Framework\Container\Container;
use Gacela\Framework\Gacela;
use PhpLightning\Config\LightningConfig;
Expand Down Expand Up @@ -79,9 +78,9 @@ private function bootstrapGacela(): void

private function mockLnPaymentRequest(): void
{
AnonymousGlobal::overrideExistingResolvedClass(
Gacela::overrideExistingResolvedClass(
InvoiceDependencyProvider::class,
new class() extends AbstractDependencyProvider {
new class() extends AbstractProvider {
public function provideModuleDependencies(Container $container): void
{
$container->set(InvoiceDependencyProvider::HTTP_API, static fn () => new FakeHttpApi());
Expand Down

0 comments on commit 6c0725c

Please sign in to comment.