Update tests
parent
2ba48b58db
commit
aefd2062c1
|
@ -83,7 +83,7 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$package
|
$package
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getName')
|
->method('getPrettyName')
|
||||||
->will($this->returnValue('some/package'));
|
->will($this->returnValue('some/package'));
|
||||||
|
|
||||||
$this->dm
|
$this->dm
|
||||||
|
@ -107,7 +107,7 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$initial
|
$initial
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getName')
|
->method('getPrettyName')
|
||||||
->will($this->returnValue('package1'));
|
->will($this->returnValue('package1'));
|
||||||
|
|
||||||
$this->repository
|
$this->repository
|
||||||
|
@ -145,7 +145,7 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
$package
|
$package
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('getName')
|
->method('getPrettyName')
|
||||||
->will($this->returnValue('pkg'));
|
->will($this->returnValue('pkg'));
|
||||||
|
|
||||||
$this->repository
|
$this->repository
|
||||||
|
@ -196,10 +196,10 @@ class LibraryInstallerTest extends \PHPUnit_Framework_TestCase
|
||||||
->will($this->returnValue('Some/Namespace'));
|
->will($this->returnValue('Some/Namespace'));
|
||||||
$package
|
$package
|
||||||
->expects($this->any())
|
->expects($this->any())
|
||||||
->method('getName')
|
->method('getPrettyName')
|
||||||
->will($this->returnValue('foo/bar'));
|
->will($this->returnValue('foo/bar'));
|
||||||
|
|
||||||
$this->assertEquals($this->vendorDir.'/'.$package->getName().'/Some/Namespace', $library->getInstallPath($package));
|
$this->assertEquals($this->vendorDir.'/'.$package->getPrettyName().'/Some/Namespace', $library->getInstallPath($package));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createPackageMock()
|
private function createPackageMock()
|
||||||
|
|
Loading…
Reference in New Issue