Skip to content

Commit

Permalink
Add newlines for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 19, 2019
1 parent 188b1f6 commit 203bb49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/TestCase/Core/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ public function testClassPathWithPlugins()
{
$basepath = TEST_APP . 'Plugin' . DS;
$this->loadPlugins(['TestPlugin', 'Company/TestPluginThree']);

$result = App::classPath('Controller', 'TestPlugin');
$this->assertPathEquals($basepath . 'TestPlugin' . DS . 'src' . DS . 'Controller' . DS, $result[0]);

$result = App::classPath('Controller', 'Company/TestPluginThree');
$expected = $basepath . 'Company' . DS . 'TestPluginThree' . DS . 'src' . DS . 'Controller' . DS;
$this->assertPathEquals($expected, $result[0]);
Expand All @@ -243,8 +245,10 @@ public function testPathWithPlugins()
$this->deprecated(function () {
$basepath = TEST_APP . 'Plugin' . DS;
$this->loadPlugins(['TestPlugin', 'Company/TestPluginThree']);

$result = App::path('Controller', 'TestPlugin');
$this->assertPathEquals($basepath . 'TestPlugin' . DS . 'src' . DS . 'Controller' . DS, $result[0]);

$result = App::path('Controller', 'Company/TestPluginThree');
$expected = $basepath . 'Company' . DS . 'TestPluginThree' . DS . 'src' . DS . 'Controller' . DS;
$this->assertPathEquals($expected, $result[0]);
Expand Down

0 comments on commit 203bb49

Please sign in to comment.