generated from Nodarx/template
refactor: split service into ServiceBase and LiveService
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -8,7 +8,7 @@ use KTXM\ProviderImap\Client\{Client, ConnectionConfig, ImapException};
|
||||
use KTXM\ProviderImap\Client\Protocol\Command\CreateCommand;
|
||||
use KTXM\ProviderImap\Client\Result\CommandCompletion;
|
||||
use KTXM\ProviderImap\Client\Transport\{ConnectionInterface, ConnectionFactoryInterface};
|
||||
use KTXM\ProviderImap\Providers\Service;
|
||||
use KTXM\ProviderImap\Providers\ServiceBase;
|
||||
use KTXM\ProviderImap\Service\Live\LiveMailService;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -48,8 +48,8 @@ final class CommandCompletionTest extends TestCase
|
||||
|
||||
private function service(Client $client): LiveMailService
|
||||
{
|
||||
return new class($this->createStub(Service::class), $client) extends LiveMailService {
|
||||
public function __construct(Service $service, private readonly Client $client)
|
||||
return new class($this->createStub(ServiceBase::class), $client) extends LiveMailService {
|
||||
public function __construct(ServiceBase $service, private readonly Client $client)
|
||||
{
|
||||
parent::__construct($service);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user