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.
*/
declare(strict_types=1);
namespace spec\Sylius\Bundle\ThemeBundle\Configuration\Test;
use PhpSpec\ObjectBehavior;
use Sylius\Bundle\ThemeBundle\Configuration\ConfigurationProviderInterface;
use Sylius\Bundle\ThemeBundle\Configuration\Test\TestConfigurationProvider;
use Sylius\Bundle\ThemeBundle\Configuration\Test\TestThemeConfigurationManagerInterface;
/**
* @author Kamil Kokot <[email protected]>
final class TestConfigurationProviderSpec extends ObjectBehavior
{
function let(TestThemeConfigurationManagerInterface $testThemeConfigurationManager): void
$this->beConstructedWith($testThemeConfigurationManager);
}
function it_implements_configuration_provider_interface(): void
$this->shouldImplement(ConfigurationProviderInterface::class);
function it_provides_configuration_based_on_test_configuration_manager(TestThemeConfigurationManagerInterface $testThemeConfigurationManager): void
$testThemeConfigurationManager->findAll()->willReturn([
['name' => 'theme/name'],
]);
$this->getConfigurations()->shouldReturn([