Skip to content

Commit

Permalink
Fix more deprecated method usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 11, 2017
1 parent 19ee93f commit 52ac1ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase/Controller/ComponentRegistryTest.php
Expand Up @@ -84,7 +84,7 @@ public function testLoadWithAlias()
$result = $this->Components->load('Cookie', ['className' => __NAMESPACE__ . '\CookieAliasComponent', 'somesetting' => true]);
$this->assertInstanceOf(__NAMESPACE__ . '\CookieAliasComponent', $result);
$this->assertInstanceOf(__NAMESPACE__ . '\CookieAliasComponent', $this->Components->Cookie);
$this->assertTrue($this->Components->Cookie->config('somesetting'));
$this->assertTrue($this->Components->Cookie->getConfig('somesetting'));

$result = $this->Components->loaded();
$this->assertEquals(['Cookie'], $result, 'loaded() results are wrong.');
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Controller/ComponentTest.php
Expand Up @@ -187,7 +187,7 @@ public function testConfigViaConstructor()
{
$Component = new ConfiguredComponent(new ComponentRegistry(), ['chicken' => 'soup']);
$this->assertEquals(['chicken' => 'soup'], $Component->configCopy);
$this->assertEquals(['chicken' => 'soup'], $Component->config());
$this->assertEquals(['chicken' => 'soup'], $Component->getConfig());
}

/**
Expand Down Expand Up @@ -226,7 +226,7 @@ public function testConfiguringInnerComponent()
$Component = new ConfiguredComponent(new ComponentRegistry(), [], ['Configured' => ['foo' => 'bar']]);
$this->assertInstanceOf(ConfiguredComponent::class, $Component->Configured, 'class is wrong');
$this->assertNotSame($Component, $Component->Configured, 'Component instance was reused');
$this->assertEquals(['foo' => 'bar', 'enabled' => false], $Component->Configured->config());
$this->assertEquals(['foo' => 'bar', 'enabled' => false], $Component->Configured->getConfig());
}

/**
Expand Down

0 comments on commit 52ac1ed

Please sign in to comment.