Move testing setters and getters to BaseTest

This commit is contained in:
Jakub Turek
2015-03-08 21:21:49 +01:00
parent c6e0d6762c
commit e7c0b87ccd
3 changed files with 58 additions and 9 deletions
@@ -33,10 +33,7 @@ class AbstractCommandTest extends BaseTest
public function testSetConfig()
{
$configMock = $this->getMock('Mage\Config');
$this->abstractCommand->setConfig($configMock);
$actual = $this->getPropertyValue($this->abstractCommand, 'config');
$this->assertSame($configMock, $actual);
$this->doTestSetter($this->abstractCommand, 'config', $configMock);
}
/**
@@ -45,9 +42,6 @@ class AbstractCommandTest extends BaseTest
public function testGetConfig()
{
$configMock = $this->getMock('Mage\Config');
$this->setPropertyValue($this->abstractCommand, 'config', $configMock);
$actual = $this->abstractCommand->getConfig();
$this->assertSame($configMock, $actual);
$this->doTestGetter($this->abstractCommand, 'config', $configMock);
}
}