Skip to content

Commit 93bc1c3

Browse files
committed
Adding of path to list of properties in Node Model, also fixed Project Test so test now passes
1 parent 2709de9 commit 93bc1c3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/Gitlab/Model/Node.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ class Node extends AbstractModel
2121
'type',
2222
'mode',
2323
'id',
24+
'path',
2425
'project'
2526
);
2627

28+
2729
/**
2830
* @param Client $client
2931
* @param Project $project

test/Gitlab/Tests/Api/ProjectsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ public function shouldGetOwnedProjects()
6565
{
6666
$expectedArray = $this->getMultipleProjectsData();
6767

68-
$api = $this->getMultipleProjectsRequestMock('projects/owned', $expectedArray, 3, 50);
68+
$api = $this->getMultipleProjectsRequestMock('projects?owned=1', $expectedArray, 3, 50);
6969

7070
$this->assertEquals($expectedArray, $api->owned(3, 50));
7171
}
7272

73+
7374
/**
7475
* @test
7576
*/

0 commit comments

Comments
 (0)