mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-04 08:28:57 +02:00
Move testing setters and getters to BaseTest
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user