mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 10:38:57 +02:00
[Nostromo] Refactor Runtime methods.
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|
||||
namespace Mage\Tests\Deploy;
|
||||
|
||||
use Mage\Deploy\Strategy\Releases\ReleasesStrategy;
|
||||
use Mage\Deploy\Strategy\Rsync\RsyncStrategy;
|
||||
use Mage\Deploy\Strategy\ReleasesStrategy;
|
||||
use Mage\Deploy\Strategy\RsyncStrategy;
|
||||
use Mage\Runtime\Exception\RuntimeException;
|
||||
use Mage\Runtime\Runtime;
|
||||
use Exception;
|
||||
|
||||
@@ -40,26 +40,6 @@ class RuntimeTest extends TestCase
|
||||
$this->assertLessThanOrEqual(2, $dateDiff->s);
|
||||
}
|
||||
|
||||
public function testEmptyEnvironmentConfig()
|
||||
{
|
||||
$runtime = new Runtime();
|
||||
$config = $runtime->getEnvironmentConfig();
|
||||
|
||||
$this->assertTrue(is_array($config));
|
||||
$this->assertEquals(0, count($config));
|
||||
}
|
||||
|
||||
public function testInvalidEnvironmentConfig()
|
||||
{
|
||||
$runtime = new RuntimeMockup();
|
||||
$runtime->setConfiguration(['environments' => ['valid' => []]]);
|
||||
$runtime->setInvalidEnvironment('invalid');
|
||||
$config = $runtime->getEnvironmentConfig();
|
||||
|
||||
$this->assertTrue(is_array($config));
|
||||
$this->assertEquals(0, count($config));
|
||||
}
|
||||
|
||||
public function testInvalidEnvironments()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user