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\ThemeBundle\Tests\DependencyInjection\FilesystemSource;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
use Sylius\Bundle\ThemeBundle\Configuration\Filesystem\FilesystemConfigurationSourceFactory;
use Sylius\Bundle\ThemeBundle\DependencyInjection\SyliusThemeExtension;
/**
* @author Kamil Kokot <[email protected]>
final class SyliusThemeExtensionTest extends AbstractExtensionTestCase
{
* @test
public function it_does_not_register_a_provider_while_it_is_disabled()
$this->load(['sources' => ['filesystem' => false]]);
$this->assertContainerBuilderHasServiceDefinitionWithArgument(
'sylius.theme.configuration.provider',
0,
[]
);
}
* {@inheritdoc}
protected function getContainerExtensions()
$themeExtension = new SyliusThemeExtension();
$themeExtension->addConfigurationSourceFactory(new FilesystemConfigurationSourceFactory());
return [$themeExtension];