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\FixturesBundle\Tests\DependencyInjection;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
use Sylius\Bundle\FixturesBundle\DependencyInjection\SyliusFixturesExtension;
/**
* @author Kamil Kokot <[email protected]>
final class SyliusFixturesExtensionTest extends AbstractExtensionTestCase
{
* @test
public function it_does_not_crash_if_no_suite_is_configured()
$this->load();
}
public function it_registers_configured_suites()
$this->load(['suites' => [
'suite_name' => [],
]]);
$suiteRegistryDefinition = $this->container->findDefinition('sylius_fixtures.suite_registry');
$suiteRegistryDefinition
20
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.
$suiteMethodCall = $suiteRegistryDefinition->getMethodCalls()[0];
static::assertSame('addSuite', $suiteMethodCall[0]);
static::assertSame('suite_name', $suiteMethodCall[1][0]);
* {@inheritdoc}
protected function getContainerExtensions()
return [new SyliusFixturesExtension()];
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.