Skip to content

Commit

Permalink
Configuration manager test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownSim committed Jan 23, 2019
1 parent fb3b441 commit 0968ad5
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Tests/ConfigurationManagerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Sherlockode\ConfigurationBundle\Tests;

use PHPUnit\Framework\TestCase;
use Sherlockode\ConfigurationBundle\Manager\ConfigurationManager;
use Sherlockode\ConfigurationBundle\Parameter\ParameterDefinition;

class ConfigurationManagerTest extends TestCase
{
public function testConstructor()
{
$config = [
'path' => [
'type' => 'string',
'label' => 'test',
],
];

$configurationManager = new ConfigurationManager($config);
$parameterDefinition = new ParameterDefinition('path', 'string', ['label' => 'test']);

$this->assertEquals($configurationManager->get('path'), $parameterDefinition);
}
}

0 comments on commit 0968ad5

Please sign in to comment.