diff --git a/tests/wdm/debian/PackagerTest.php b/tests/wdm/debian/PackagerTest.php index c10f4ca..1af248d 100644 --- a/tests/wdm/debian/PackagerTest.php +++ b/tests/wdm/debian/PackagerTest.php @@ -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()