@@ -57,14 +57,15 @@ public function testCreate()
57
57
'type ' => 'composer-repo ' ,
58
58
'name ' => $ name = 'Customer ' ,
59
59
'accessToVersionControlSource ' => false ,
60
+ 'minimumAccessibleStability ' => 'dev ' ,
60
61
],
61
62
];
62
63
63
64
/** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
64
65
$ api = $ this ->getApiMock ();
65
66
$ api ->expects ($ this ->once ())
66
67
->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 ]))
68
69
->willReturn ($ expected );
69
70
70
71
$ this ->assertSame ($ expected , $ api ->create ($ name ));
@@ -78,17 +79,18 @@ public function testCreateAllParameters()
78
79
'type ' => 'composer-repo ' ,
79
80
'name ' => $ name = 'Customer ' ,
80
81
'accessToVersionControlSource ' => false ,
82
+ 'minimumAccessibleStability ' => 'beta '
81
83
],
82
84
];
83
85
84
86
/** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
85
87
$ api = $ this ->getApiMock ();
86
88
$ api ->expects ($ this ->once ())
87
89
->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 ' ]))
89
91
->willReturn ($ expected );
90
92
91
- $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' ));
93
+ $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' , ' beta ' ));
92
94
}
93
95
94
96
public function tesEdit ()
@@ -100,13 +102,15 @@ public function tesEdit()
100
102
'name ' => $ name = 'Customer ' ,
101
103
'urlName ' => 'customer ' ,
102
104
'accessToVersionControlSource ' => false ,
105
+ 'minimumAccessibleStability ' => 'dev ' ,
103
106
],
104
107
];
105
108
106
109
$ customer = [
107
110
'name ' => $ name ,
108
111
'urlName ' => 'customer ' ,
109
112
'accessToVersionControlSource ' => false ,
113
+ 'minimumAccessibleStability ' => null ,
110
114
];
111
115
112
116
/** @var Customers&\PHPUnit_Framework_MockObject_MockObject $api */
0 commit comments