Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raistlfiren committed Jun 9, 2024
1 parent e37c099 commit 4cd94a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/Library/Handler/AbstractHandlerTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<?php


namespace App\Tests\Library\Handler;


use App\Http\GarminClient\GarminClient;
use App\Library\Handler\AbstractHandler;
use App\Library\Handler\HandlerOptions;
use App\Library\Parser\Parser;
use App\Service\GarminHelper;
use dawguk\GarminConnect;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

Expand Down Expand Up @@ -40,7 +38,7 @@ public function setUp(): void
$this->eventDispatcher = $this->createMock(EventDispatcherInterface::class);
$this->garminHelper = $this->createMock(GarminHelper::class);
$this->handler = $this->getMockForAbstractClass(AbstractHandler::class, [$parser, $this->eventDispatcher, $this->garminHelper]);
$this->client = $this->createPartialMock(GarminConnect::class, ['getWorkoutList']);
$this->client = $this->createPartialMock(GarminClient::class, ['getWorkoutList']);
}

public function testDeleteWorkouts()
Expand Down Expand Up @@ -72,4 +70,4 @@ public function testDeleteWorkouts()
// {
//
// }
}
}

0 comments on commit 4cd94a2

Please sign in to comment.