From 472e5b05bf52b25c233eaf7790ad480445c44b3e Mon Sep 17 00:00:00 2001 From: Claudio Zizza Date: Mon, 5 Jan 2015 13:36:19 +0100 Subject: [PATCH] namespace fix for BuiltIn --- .../Command/BuildIn/VersionCommandTest.php | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 tests/MageTest/Command/BuildIn/VersionCommandTest.php diff --git a/tests/MageTest/Command/BuildIn/VersionCommandTest.php b/tests/MageTest/Command/BuildIn/VersionCommandTest.php deleted file mode 100644 index a607cae..0000000 --- a/tests/MageTest/Command/BuildIn/VersionCommandTest.php +++ /dev/null @@ -1,43 +0,0 @@ -workAroundStatic(); - $command = new VersionCommand(); - $command->run(); - - $this->expectOutputString('Running Magallanes version 2' . str_repeat(PHP_EOL, 2)); - } - - /** - * This is only needed as long as Console-class has static methods and properties - */ - private function workAroundStatic() - { - $refClass = new \ReflectionClass('Mage\Console'); - - $refProperty = $refClass->getProperty('logEnabled'); - $refProperty->setAccessible(true); - $refProperty->setValue(false); - - $config = $this->getMock('Mage\Config'); - $config->expects($this->once()) - ->method('getParameter') - ->will($this->returnValue(true)); - - $refProperty = $refClass->getProperty('config'); - $refProperty->setAccessible(true); - $refProperty->setValue($config); - } -}