Skip to content

Commit 70ab154

Browse files
drummm1guelpf
authored andcommitted
Update tests
1 parent 1000306 commit 70ab154

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/Gitlab/Tests/Api/TagsTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function shouldShowTag()
3232
$api = $this->getApiMock();
3333
$api->expects($this->once())
3434
->method('get')
35-
->with('projects/1/repository/tags/v1.0.0')
35+
->with('projects/1/repository/tags/v1%2E0%2E0')
3636
->will($this->returnValue($expectedArray));
3737
$this->assertEquals($expectedArray, $api->show(1, 'v1.0.0'));
3838
}
@@ -73,7 +73,7 @@ public function shouldRemoveTag()
7373
$api = $this->getApiMock();
7474
$api->expects($this->once())
7575
->method('delete')
76-
->with('projects/1/repository/tags/v1.1.0')
76+
->with('projects/1/repository/tags/v1%2E1%2E0')
7777
->will($this->returnValue($expectedArray));
7878
$this->assertEquals($expectedArray, $api->remove(1, 'v1.1.0'));
7979
}
@@ -94,7 +94,7 @@ public function shouldCreateRelease($releaseName, $description, $expectedResult)
9494
$api = $this->getApiMock();
9595
$api->expects($this->once())
9696
->method('post')
97-
->with('projects/1/repository/tags/' . $releaseName . '/release', $params)
97+
->with('projects/1/repository/tags/' . urlencode($releaseName) . '/release', $params)
9898
->will($this->returnValue($expectedResult));
9999

100100
$this->assertEquals($expectedResult, $api->create(1, $params));
@@ -116,7 +116,7 @@ public function shouldUpdateRelease($releaseName, $description, $expectedResult)
116116
$api = $this->getApiMock();
117117
$api->expects($this->once())
118118
->method('put')
119-
->with('projects/1/repository/tags/' . $releaseName . '/release', $params)
119+
->with('projects/1/repository/tags/' . urlencode($releaseName) . '/release', $params)
120120
->will($this->returnValue($expectedResult));
121121

122122
$this->assertEquals($expectedResult, $api->create(1, $params));
@@ -134,7 +134,7 @@ public function releaseDataProvider()
134134
),
135135
),
136136
array(
137-
'tagName' => urlencode('version/1.1.0'),
137+
'tagName' => 'version/1.1.0',
138138
'description' => 'Amazing release. Wow',
139139
'expectedResult' => array(
140140
'tag_name' => 'version/1.1.0',

0 commit comments

Comments
 (0)