This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robin
committed
Dec 16, 2020
1 parent
d760feb
commit 8b433ec
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PiedWeb\CMSBundle\Tests\DependencyInjection; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use PiedWeb\CMSBundle\DependencyInjection\Configuration; | ||
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; | ||
use Symfony\Component\Config\Definition\Exception\InvalidTypeException; | ||
use Symfony\Component\Config\Definition\Processor; | ||
|
||
class ConfigurationTest extends TestCase | ||
{ | ||
use ExpectDeprecationTrait; | ||
|
||
public function testConf(): void | ||
{ | ||
$config = $this->process([]); | ||
|
||
$this->assertSame($config['locale'], '%locale%'); | ||
} | ||
|
||
protected function process($configs): array | ||
{ | ||
$processor = new Processor(); | ||
|
||
return $processor->processConfiguration(new Configuration(), $configs); | ||
} | ||
} |