Skip to content

Commit

Permalink
Rename injectable config proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 18, 2020
1 parent b4029c8 commit 4ba0610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Core/Configuration.php → src/Core/ServiceConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* a typehintable way for services to have application
* confiugration injected as arrays cannot be typehinted.
*/
class Configuration
class ServiceConfig
{
/**
* Read a configuration key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
*/
namespace Cake\Test\TestCase\Core;

use Cake\Core\Configuration;
use Cake\Core\ServiceConfig;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;

/**
* ConfigurationTest
* ServiceConfigTest
*/
class ConfigurationTest extends TestCase
class ServiceConfigTest extends TestCase
{
public function testGet()
{
Configure::write('first', 'first-val');
Configure::write('nested.path', 'nested-val');
$config = new Configuration();
$config = new ServiceConfig();

$this->assertSame('first-val', $config->get('first'));
$this->assertSame('nested-val', $config->get('nested.path'));
Expand All @@ -43,7 +43,7 @@ public function testHas()
Configure::write('first', 'first-val');
Configure::write('nested.path', 'nested-val');
Configure::write('nullval', null);
$config = new Configuration();
$config = new ServiceConfig();

$this->assertFalse($config->has('nope'));
$this->assertTrue($config->has('first'));
Expand Down

0 comments on commit 4ba0610

Please sign in to comment.