shlink/module/Common/test/ConfigProviderTest.php

30 lines
595 B
PHP
Raw Normal View History

2016-07-30 10:45:48 -05:00
<?php
2017-10-12 03:13:20 -05:00
declare(strict_types=1);
2016-07-30 10:45:48 -05:00
namespace ShlinkioTest\Shlink\Common;
2017-03-24 14:34:18 -05:00
use PHPUnit\Framework\TestCase;
2016-07-30 10:45:48 -05:00
use Shlinkio\Shlink\Common\ConfigProvider;
class ConfigProviderTest extends TestCase
{
/** @var ConfigProvider */
private $configProvider;
2016-07-30 10:45:48 -05:00
public function setUp()
{
$this->configProvider = new ConfigProvider();
}
/**
* @test
*/
public function configIsReturned()
{
$config = $this->configProvider->__invoke();
$this->assertArrayHasKey('dependencies', $config);
2017-10-12 03:03:43 -05:00
$this->assertArrayHasKey('plates', $config);
2016-07-30 10:45:48 -05:00
}
}