@@ -57,14 +57,15 @@ public function testCreate()
5757 'type ' => 'composer-repo ' ,
5858 'name ' => $ name = 'Customer ' ,
5959 'accessToVersionControlSource ' => false ,
60+ 'minimumAccessibleStability ' => 'dev ' ,
6061 ],
6162 ];
6263
6364 /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
6465 $ api = $ this ->getApiMock ();
6566 $ api ->expects ($ this ->once ())
6667 ->method ('post ' )
67- ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => false ]))
68+ ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => false , ' minimumAccessibleStability ' => null ]))
6869 ->willReturn ($ expected );
6970
7071 $ this ->assertSame ($ expected , $ api ->create ($ name ));
@@ -78,17 +79,18 @@ public function testCreateAllParameters()
7879 'type ' => 'composer-repo ' ,
7980 'name ' => $ name = 'Customer ' ,
8081 'accessToVersionControlSource ' => false ,
82+ 'minimumAccessibleStability ' => 'beta '
8183 ],
8284 ];
8385
8486 /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
8587 $ api = $ this ->getApiMock ();
8688 $ api ->expects ($ this ->once ())
8789 ->method ('post ' )
88- ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => true , 'urlName ' => 'url-name ' ]))
90+ ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => true , 'urlName ' => 'url-name ' , ' minimumAccessibleStability ' => ' beta ' ]))
8991 ->willReturn ($ expected );
9092
91- $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' ));
93+ $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' , ' beta ' ));
9294 }
9395
9496 public function tesEdit ()
@@ -100,13 +102,15 @@ public function tesEdit()
100102 'name ' => $ name = 'Customer ' ,
101103 'urlName ' => 'customer ' ,
102104 'accessToVersionControlSource ' => false ,
105+ 'minimumAccessibleStability ' => 'dev ' ,
103106 ],
104107 ];
105108
106109 $ customer = [
107110 'name ' => $ name ,
108111 'urlName ' => 'customer ' ,
109112 'accessToVersionControlSource ' => false ,
113+ 'minimumAccessibleStability ' => null ,
110114 ];
111115
112116 /** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
0 commit comments