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); - } -}