Fix tests for default deb name

The tests with default package name still expected the old version of the name.
This commit is contained in:
Jan-Hendrik Frintrop 2017-07-18 09:57:44 +02:00 committed by GitHub
parent 30ff4542b2
commit 2d8613b859

View file

@ -57,8 +57,14 @@ class PackagerTest extends \PHPUnit_Framework_TestCase
$this->object->run();
$command = $this->object->build();
$control = $this->getControl();
$name = $control['Package'];
$version = $control['Version'];
$arch = $control['Architecture'];
$debPackageName = "{$name}_{$version}_{$arch}.deb";
$this->assertEquals("dpkg -b vfs://root/tmp tmp.deb", $command);
$this->assertEquals("dpkg -b vfs://root/tmp {$debPackageName}", $command);
}
public function testCreateDebWhenOutputFolderIsMissing()
@ -72,8 +78,14 @@ class PackagerTest extends \PHPUnit_Framework_TestCase
$this->object->run();
$command = $this->object->build();
$control = $this->getControl();
$name = $control['Package'];
$version = $control['Version'];
$arch = $control['Architecture'];
$debPackageName = "{$name}_{$version}_{$arch}.deb";
$this->assertEquals("dpkg -b vfs://root/tmp tmp.deb", $command);
$this->assertEquals("dpkg -b vfs://root/tmp {$debPackageName}", $command);
}
public function testCreateDebPackageWithAnotherName()