/**
  * @test
  */
 public function getDocumentationPathReturnsPathToDocumentationDirectory()
 {
     $package = new Package($this->mockPackageManager, 'TYPO3.Flow', FLOW_PATH_FLOW);
     $packageDocumentationPath = $package->getDocumentationPath();
     $this->assertEquals($package->getPackagePath() . Package::DIRECTORY_DOCUMENTATION, $packageDocumentationPath);
 }
예제 #2
0
 /**
  * @test
  */
 public function getDocumentationPathReturnsPathToDocumentationDirectory()
 {
     $package = new FlowPackage($this->getMock('TYPO3\\CMS\\Core\\Package\\PackageManager'), 'TYPO3.CMS.Core', PATH_typo3 . 'sysext/core/');
     $packageDocumentationPath = $package->getDocumentationPath();
     $this->assertEquals($package->getPackagePath() . FlowPackage::DIRECTORY_DOCUMENTATION, $packageDocumentationPath);
 }