Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. /**
  2. * Created by PhpStorm.
  3. * User: anton
  4. * Date: 11.12.18
  5. * Time: 14:56
  6. */
  7.  
  8. namespace Tests\Functional\ApiBundle\Service\LoyaltySystem\Loymax;
  9.  
  10. use ApiBundle\Service\LoyaltySystem\Loymax\User\UserProviderFactory;
  11. use App\Test\ApiTestCase;
  12. use PHPUnit\Framework\TestCase;
  13. use Symfony\Component\VarDumper\VarDumper;
  14.  
  15. class UserProviderFactoryTest extends ApiTestCase
  16. {
  17.  
  18. public function testCanGetProvider()
  19. {
  20. $provider = ($this->getContainer())->get('user.provider.interface');
  21. self::assertNotNull($provider);
  22. }
  23. }
  24.  
  25.  
  26. Testing Tests\Functional\ApiBundle\Service\LoyaltySystem\Loymax\UserProviderFactoryTest
  27.  
  28. Starting sapato_php_1 ... done
  29. RuntimeException : There is no current request.
  30. /var/www/api/vendor/friendsofsymfony/rest-bundle/Request/ParamFetcher.php:242
  31. /var/www/api/vendor/friendsofsymfony/rest-bundle/Request/ParamFetcher.php:87
  32. /var/www/api/src/ApiBundle/Service/Request/Handle/Preparer/PreparerTrait.php:20
  33. /var/www/api/src/ApiBundle/Service/Request/Handle/Preparer/QueryStringPreparer.php:19
  34. /var/www/api/src/ApiBundle/Service/Request/Handle/Preparer/PreparerComposite.php:22
  35. /var/www/api/src/ApiBundle/Service/Request/Handle/RequestContainer/RequestContainerFactory.php:44
  36. /var/www/api/var/cache/test/ContainerHyguyh0/getRequestContainerService.php:8
  37. /var/www/api/var/cache/test/ContainerHyguyh0/appTestProjectContainer.php:2162
  38. /var/www/api/var/cache/test/ContainerHyguyh0/getUser_Provider_InterfaceService.php:8
  39. /var/www/api/var/cache/test/ContainerHyguyh0/appTestProjectContainer.php:2162
  40. /var/www/api/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:304
  41. /var/www/api/tests/functional/ApiBundle/Service/LoyaltySystem/Loymax/UserProviderFactoryTest.php:21
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement