Skip to content

Commit f3565b6

Browse files
TheRatGm1guelpf
authored andcommitted
delete pipeline test
1 parent c96eb8c commit f3565b6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/Gitlab/Tests/Api/ProjectsTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,23 @@ public function shouldCancelPipeline()
581581
$this->assertEquals($expectedArray, $api->cancelPipeline(1, 6));
582582
}
583583

584+
/**
585+
* @test
586+
*/
587+
public function shouldDeletePipeline()
588+
{
589+
$expectedBool = true;
590+
591+
$api = $this->getApiMock();
592+
$api->expects($this->once())
593+
->method('delete')
594+
->with('projects/1/pipelines/3')
595+
->will($this->returnValue($expectedBool))
596+
;
597+
598+
$this->assertEquals($expectedBool, $api->deletePipeline(1, 3));
599+
}
600+
584601
/**
585602
* @test
586603
*/

0 commit comments

Comments
 (0)