File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -98,13 +98,24 @@ public function testGetParents_WithOneParent($repository)
98
98
/**
99
99
* @dataProvider provideFoobar
100
100
*/
101
- public function testGetTree ($ repository )
101
+ public function testGetTreeHash ($ repository )
102
102
{
103
103
$ commit = $ repository ->getCommit (self ::LONGFILE_COMMIT );
104
104
105
105
$ this ->assertEquals ('b06890c7b10904979d2f69613c2ccda30aafe262 ' , $ commit ->getTreeHash (), "Tree hash is correct " );
106
106
}
107
107
108
+ /**
109
+ * @dataProvider provideFoobar
110
+ */
111
+ public function testGetTree ($ repository )
112
+ {
113
+ $ commit = $ repository ->getCommit (self ::LONGFILE_COMMIT );
114
+
115
+ $ this ->assertInstanceOf ('Gitonomy\Git\Tree ' , $ commit ->getTree (), "Tree is a tree " );
116
+ $ this ->assertEquals ('b06890c7b10904979d2f69613c2ccda30aafe262 ' , $ commit ->getTree ()->getHash (), "Tree hash is correct " );
117
+ }
118
+
108
119
/**
109
120
* @dataProvider provideFoobar
110
121
*/
You can’t perform that action at this time.
0 commit comments