@@ -21,6 +21,7 @@ public function testAll()
21
21
'id ' => 1 ,
22
22
'type ' => 'composer-repo ' ,
23
23
'name ' => 'Customer ' ,
24
+ 'assignAllPackages ' => false ,
24
25
],
25
26
];
26
27
@@ -39,7 +40,8 @@ public function testShow()
39
40
$ expected = [
40
41
'id ' => 1 ,
41
42
'type ' => 'composer-repo ' ,
42
- 'name ' => $ name = 'Customer ' ,
43
+ 'name ' => 'Customer ' ,
44
+ 'assignAllPackages ' => false ,
43
45
];
44
46
45
47
/** @var Customers&MockObject $api */
@@ -61,14 +63,15 @@ public function testCreate()
61
63
'name ' => $ name = 'Customer ' ,
62
64
'accessToVersionControlSource ' => false ,
63
65
'minimumAccessibleStability ' => 'dev ' ,
66
+ 'assignAllPackages ' => false ,
64
67
],
65
68
];
66
69
67
70
/** @var Customers&MockObject $api */
68
71
$ api = $ this ->getApiMock ();
69
72
$ api ->expects ($ this ->once ())
70
73
->method ('post ' )
71
- ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => false , 'minimumAccessibleStability ' => null ]))
74
+ ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => false , 'minimumAccessibleStability ' => null , ' assignAllPackages ' => false ]))
72
75
->willReturn ($ expected );
73
76
74
77
$ this ->assertSame ($ expected , $ api ->create ($ name ));
@@ -82,18 +85,19 @@ public function testCreateAllParameters()
82
85
'type ' => 'composer-repo ' ,
83
86
'name ' => $ name = 'Customer ' ,
84
87
'accessToVersionControlSource ' => false ,
85
- 'minimumAccessibleStability ' => 'beta '
88
+ 'minimumAccessibleStability ' => 'beta ' ,
89
+ 'assignAllPackages ' => true ,
86
90
],
87
91
];
88
92
89
93
/** @var Customers&MockObject $api */
90
94
$ api = $ this ->getApiMock ();
91
95
$ api ->expects ($ this ->once ())
92
96
->method ('post ' )
93
- ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => true , 'urlName ' => 'url-name ' , 'minimumAccessibleStability ' => 'beta ' ]))
97
+ ->with ($ this ->equalTo ('/customers/ ' ), $ this ->equalTo (['name ' => $ name , 'accessToVersionControlSource ' => true , 'urlName ' => 'url-name ' , 'minimumAccessibleStability ' => 'beta ' , ' assignAllPackages ' => true ]))
94
98
->willReturn ($ expected );
95
99
96
- $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' , 'beta ' ));
100
+ $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' , 'beta ' , true ));
97
101
}
98
102
99
103
public function tesEdit ()
@@ -106,6 +110,7 @@ public function tesEdit()
106
110
'urlName ' => 'customer ' ,
107
111
'accessToVersionControlSource ' => false ,
108
112
'minimumAccessibleStability ' => 'dev ' ,
113
+ 'assignAllPackages ' => false ,
109
114
],
110
115
];
111
116
@@ -114,6 +119,7 @@ public function tesEdit()
114
119
'urlName ' => 'customer ' ,
115
120
'accessToVersionControlSource ' => false ,
116
121
'minimumAccessibleStability ' => null ,
122
+ 'assignAllPackages ' => false ,
117
123
];
118
124
119
125
/** @var Customers&MockObject $api */
@@ -149,6 +155,7 @@ public function testEnable()
149
155
'urlName ' => 'customer ' ,
150
156
'accessToVersionControlSource ' => false ,
151
157
'enabled ' => true ,
158
+ 'assignAllPackages ' => false ,
152
159
];
153
160
154
161
/** @var Customers&MockObject $api */
@@ -170,6 +177,7 @@ public function testDisable()
170
177
'urlName ' => 'customer ' ,
171
178
'accessToVersionControlSource ' => false ,
172
179
'enabled ' => false ,
180
+ 'assignAllPackages ' => false ,
173
181
];
174
182
175
183
/** @var Customers&MockObject $api */
0 commit comments