We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea80ac commit bbbc030Copy full SHA for bbbc030
test/Gitlab/Tests/Api/ProjectsTest.php
@@ -118,6 +118,26 @@ public function shouldCreateProject()
118
)));
119
}
120
121
+ /**
122
+ * @test
123
+ */
124
+ public function shouldUpdateProject()
125
+ {
126
+ $expectedArray = array('id' => 1, 'name' => 'Updated Name');
127
+
128
+ $api = $this->getApiMock();
129
+ $api->expects($this->once())
130
+ ->method('put')
131
+ ->with('projects/1', array('name' => 'Updated Name', 'issues_enabled' => true))
132
+ ->will($this->returnValue($expectedArray))
133
+ ;
134
135
+ $this->assertEquals($expectedArray, $api->update(1, array(
136
+ 'name' => 'Updated Name',
137
+ 'issues_enabled' => true
138
+ )));
139
+ }
140
141
/**
142
* @test
143
*/
0 commit comments