Browse Source

Change commitHash to match real life examples

Nicole Cordes 8 years ago
parent
commit
d834fcfac5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/Composer/Test/Package/Version/VersionGuesserTest.php

+ 3 - 3
tests/Composer/Test/Package/Version/VersionGuesserTest.php

@@ -160,7 +160,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
 
     public function testDetachedFetchHeadBecomesDevHashGit2()
     {
-        $commitHash = 'da53c52eddd5f32ffca64a7b3801bea';
+        $commitHash = '03a15d220da53c52eddd5f32ffca64a7b3801bea';
 
         $executor = $this->getMockBuilder('\\Composer\\Util\\ProcessExecutor')
             ->setMethods(array('execute'))
@@ -190,7 +190,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
 
     public function testDetachedCommitHeadBecomesDevHashGit2()
     {
-        $commitHash = 'da53c52eddd5f32ffca64a7b3801bea';
+        $commitHash = '03a15d220da53c52eddd5f32ffca64a7b3801bea';
 
         $executor = $this->getMockBuilder('\\Composer\\Util\\ProcessExecutor')
             ->setMethods(array('execute'))
@@ -205,7 +205,7 @@ class VersionGuesserTest extends \PHPUnit_Framework_TestCase
             ->method('execute')
             ->willReturnCallback(function ($command, &$output) use ($self, $commitHash) {
                 $self->assertEquals('git branch --no-color --no-abbrev -v', $command);
-                $output = "* (HEAD detached at da53c52ed) $commitHash Commit message\n";
+                $output = "* (HEAD detached at 03a15d220) $commitHash Commit message\n";
 
                 return 0;
             });