| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function testShowObjectLog(): void |
||
| 43 | { |
||
| 44 | $branch = $this->getRepository()->getBranch('master'); |
||
| 45 | $obj = $this->getRepository()->getTree('HEAD', 'test-folder/test-file')->getBlob(); |
||
| 46 | $lc = LogCommand::getInstance(); |
||
| 47 | $this->assertEquals( |
||
| 48 | "log '-s' '--pretty=raw' '--no-color' -- 'test-folder/test-file'", |
||
| 49 | $lc->showObjectLog($obj) |
||
| 50 | ); |
||
| 51 | $this->assertEquals( |
||
| 52 | "log '-s' '--pretty=raw' '--no-color' 'master' -- 'test-folder/test-file'", |
||
| 53 | $lc->showObjectLog($obj, $branch) |
||
| 54 | ); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |