for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\UserBundle\Tests\Functional;
use PHPUnit\Framework\Assert;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\DependencyInjection\Container;
/**
* @author Magdalena Banasiak <[email protected]>
final class SyliusUserBundleTest extends KernelTestCase
{
* @test
public function its_services_are_initializable()
static::bootKernel();
/** @var Container $container */
$container = self::$kernel->getContainer();
$serviceIds = array_filter($container->getServiceIds(), function ($serviceId) {
return 0 === strpos($serviceId, 'sylius.');
});
foreach ($serviceIds as $serviceId) {
Assert::assertNotNull($container->get($serviceId));
}