Magallanes/tests/MageTest/Command/AbstractCommandTest.php

48 lines
1.1 KiB
PHP
Raw Normal View History

2015-02-19 21:34:30 +01:00
<?php
namespace MageTest\Command;
2015-02-19 21:34:30 +01:00
use Mage\Command\AbstractCommand;
use MageTest\TestHelper\BaseTest;
2015-02-19 21:34:30 +01:00
use PHPUnit_Framework_MockObject_MockObject;
/**
* Class AbstractCommandTest
* @package MageTest\Command
2015-02-20 16:16:18 +01:00
* @author Jakub Turek <ja@kubaturek.pl>
2015-02-19 21:34:30 +01:00
* @coversDefaultClass Mage\Command\AbstractCommand
*/
class AbstractCommandTest extends BaseTest
2015-02-19 21:34:30 +01:00
{
/**
* @var AbstractCommand|PHPUnit_Framework_MockObject_MockObject
*/
private $abstractCommand;
/**
* @before
*/
public function before()
{
$this->abstractCommand = $this->getMockForAbstractClass('Mage\Command\AbstractCommand');
}
/**
* @covers ::setConfig
*/
public function testSetConfig()
{
$configMock = $this->getMock('Mage\Config');
$this->doTestSetter($this->abstractCommand, 'config', $configMock);
2015-02-19 21:34:30 +01:00
}
/**
* @covers ::getConfig
*/
public function testGetConfig()
{
$configMock = $this->getMock('Mage\Config');
$this->doTestGetter($this->abstractCommand, 'config', $configMock);
2015-02-19 21:34:30 +01:00
}
}