Skip to content
Snippets Groups Projects
Commit 9d413e1a authored by Vladimir Pelipenko's avatar Vladimir Pelipenko
Browse files

Merge pull request #1165 from EliasZ/patch-1

fix typos
parents 3edca366 79184c45
Branches
No related merge requests found
...@@ -85,7 +85,7 @@ class FaviconTest extends \PHPUnit_Framework_TestCase ...@@ -85,7 +85,7 @@ class FaviconTest extends \PHPUnit_Framework_TestCase
public function testGetFaviconFile() public function testGetFaviconFile()
{ {
$scopeConfigValue = 'path'; $scopeConfigValue = 'path';
$urlToMediaDir = 'http://magneto.url/pub/media/'; $urlToMediaDir = 'http://magento.url/pub/media/';
$expectedFile = ImageFavicon::UPLOAD_DIR . '/' . $scopeConfigValue; $expectedFile = ImageFavicon::UPLOAD_DIR . '/' . $scopeConfigValue;
$expectedUrl = $urlToMediaDir . $expectedFile; $expectedUrl = $urlToMediaDir . $expectedFile;
......
...@@ -120,7 +120,7 @@ class LibraryTest extends \PHPUnit_Framework_TestCase ...@@ -120,7 +120,7 @@ class LibraryTest extends \PHPUnit_Framework_TestCase
$this->libraryDirectoryMock->expects($this->any())->method('search')->will($this->returnValue($libraryFiles)); $this->libraryDirectoryMock->expects($this->any())->method('search')->will($this->returnValue($libraryFiles));
$this->libraryDirectoryMock->expects($this->any())->method('getAbsolutePath')->will($this->returnCallback( $this->libraryDirectoryMock->expects($this->any())->method('getAbsolutePath')->will($this->returnCallback(
function ($file) { function ($file) {
return '/opt/Magneto/lib/' . $file; return '/opt/Magento/lib/' . $file;
} }
)); ));
$themePath = '/var/Magento/ATheme'; $themePath = '/var/Magento/ATheme';
......
...@@ -42,7 +42,7 @@ class BlockFactory ...@@ -42,7 +42,7 @@ class BlockFactory
$blockName = ltrim($blockName, '\\'); $blockName = ltrim($blockName, '\\');
$block = $this->objectManager->create($blockName, $arguments); $block = $this->objectManager->create($blockName, $arguments);
if (!$block instanceof BlockInterface) { if (!$block instanceof BlockInterface) {
throw new \LogicException($blockName . ' does not implemented BlockInterface'); throw new \LogicException($blockName . ' does not implement BlockInterface');
} }
if ($block instanceof Template) { if ($block instanceof Template) {
$block->setTemplateContext($block); $block->setTemplateContext($block);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment