mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Changed injection method from class to interface
This commit is contained in:
parent
c0113ecd32
commit
06053c6bcf
@ -5,7 +5,6 @@
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||
parameters:
|
||||
locale: 'en'
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
@ -44,7 +43,7 @@ services:
|
||||
|
||||
# add more service definitions when explicit configuration is needed
|
||||
# please note that last definitions always *replace* previous ones
|
||||
|
||||
# testing configuration
|
||||
|
||||
# Needed for integration tests
|
||||
App\Domain\RequestManagement\Entity\RequestedEntityService:
|
||||
public: true
|
||||
public: true
|
@ -4,7 +4,6 @@ namespace tests\Integration\Domain\RequestManagement\Entity;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use App\Domain\RequestManagement\Entity\RequestedEntityServiceInterface;
|
||||
use App\Domain\RequestManagement\Entity\RequestedEntityService;
|
||||
use App\Entity\Source\AbstractSource;
|
||||
|
||||
/**
|
||||
@ -25,7 +24,7 @@ class RequestedEntityServiceIntegrationTest extends KernelTestCase
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->requestedEntityService = self::$container->get(RequestedEntityService::class);
|
||||
$this->requestedEntityService = self::$container->get(RequestedEntityServiceInterface::class);
|
||||
}
|
||||
|
||||
public function testClassAccessors(): void
|
||||
|
Loading…
Reference in New Issue
Block a user