Skip to content

Commit 2483086

Browse files
mirko-jtlm1guelpf
authored andcommitted
Add missing param visibility for snippet creation in tests
1 parent 851ce8c commit 2483086

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Gitlab/Tests/Api/SnippetsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ public function shouldCreateSnippet()
4949
$api = $this->getApiMock();
5050
$api->expects($this->once())
5151
->method('post')
52-
->with('projects/1/snippets', array('title' => 'A new snippet', 'code' => 'A file', 'file_name' => 'file.txt'))
52+
->with('projects/1/snippets', array('title' => 'A new snippet', 'code' => 'A file', 'file_name' => 'file.txt', 'visibility' => 'public'))
5353
->will($this->returnValue($expectedArray))
5454
;
5555

56-
$this->assertEquals($expectedArray, $api->create(1, 'A new snippet', 'file.txt', 'A file'));
56+
$this->assertEquals($expectedArray, $api->create(1, 'A new snippet', 'file.txt', 'A file', 'public'));
5757
}
5858

5959
/**

0 commit comments

Comments
 (0)