@@ -482,26 +482,26 @@ public function shouldGetPipelinesWithBooleanParam()
482482 $ this ->assertEquals ($ expectedArray , $ api ->pipelines (1 , ['yaml_errors ' => false ]));
483483 }
484484
485- /**
486- * @test
487- */
488- public function shouldGetPipelinesWithSHA ()
489- {
490- $ expectedArray = array (
491- array ('id ' => 1 , 'status ' => 'success ' ,'ref ' => 'new-pipeline ' ),
492- array ('id ' => 2 , 'status ' => 'failed ' , 'ref ' => 'new-pipeline ' ),
493- array ('id ' => 3 , 'status ' => 'pending ' , 'ref ' => 'test-pipeline ' )
494- );
495-
496- $ api = $ this ->getApiMock ();
497- $ api ->expects ($ this ->once ())
498- ->method ('get ' )
499- ->with ('projects/1/pipelines ' , ['sha ' => '123 ' ])
500- ->will ($ this ->returnValue ($ expectedArray ))
501- ;
502-
503- $ this ->assertEquals ($ expectedArray , $ api ->pipelines (1 , ['sha ' => '123 ' ]));
504- }
485+ /**
486+ * @test
487+ */
488+ public function shouldGetPipelinesWithSHA ()
489+ {
490+ $ expectedArray = array (
491+ array ('id ' => 1 , 'status ' => 'success ' ,'ref ' => 'new-pipeline ' ),
492+ array ('id ' => 2 , 'status ' => 'failed ' , 'ref ' => 'new-pipeline ' ),
493+ array ('id ' => 3 , 'status ' => 'pending ' , 'ref ' => 'test-pipeline ' )
494+ );
495+
496+ $ api = $ this ->getApiMock ();
497+ $ api ->expects ($ this ->once ())
498+ ->method ('get ' )
499+ ->with ('projects/1/pipelines ' , ['sha ' => '123 ' ])
500+ ->will ($ this ->returnValue ($ expectedArray ))
501+ ;
502+
503+ $ this ->assertEquals ($ expectedArray , $ api ->pipelines (1 , ['sha ' => '123 ' ]));
504+ }
505505
506506 /**
507507 * @test
0 commit comments