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:
parent
30ff4542b2
commit
2d8613b859
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue