Created more tests on CLI module

This commit is contained in:
Alejandro Celaya
2016-07-28 20:49:27 +02:00
parent f4532c3015
commit ab6aa99a6d
2 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace ShlinkioTest\Shlink\CLI;
use PHPUnit_Framework_TestCase as TestCase;
use Shlinkio\Shlink\CLI\ConfigProvider;
class ConfigProviderTest extends TestCase
{
/**
* @var ConfigProvider
*/
protected $configProvider;
public function setUp()
{
$this->configProvider = new ConfigProvider();
}
/**
* @test
*/
public function confiIsProperlyReturned()
{
$config = $this->configProvider->__invoke();
$this->assertArrayHasKey('cli', $config);
$this->assertArrayHasKey('services', $config);
$this->assertArrayHasKey('translator', $config);
}
}