@@ -21,6 +21,7 @@ public function testAll()
2121 'id ' => 1 ,
2222 'type ' => 'composer-repo ' ,
2323 'name ' => 'Customer ' ,
24+ 'assignAllPackages ' => false ,
2425 ],
2526 ];
2627
@@ -39,7 +40,8 @@ public function testShow()
3940 $ expected = [
4041 'id ' => 1 ,
4142 'type ' => 'composer-repo ' ,
42- 'name ' => $ name = 'Customer ' ,
43+ 'name ' => 'Customer ' ,
44+ 'assignAllPackages ' => false ,
4345 ];
4446
4547 /** @var Customers&MockObject $api */
@@ -61,14 +63,15 @@ public function testCreate()
6163 'name ' => $ name = 'Customer ' ,
6264 'accessToVersionControlSource ' => false ,
6365 'minimumAccessibleStability ' => 'dev ' ,
66+ 'assignAllPackages ' => false ,
6467 ],
6568 ];
6669
6770 /** @var Customers&MockObject $api */
6871 $ api = $ this ->getApiMock ();
6972 $ api ->expects ($ this ->once ())
7073 ->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 ]))
7275 ->willReturn ($ expected );
7376
7477 $ this ->assertSame ($ expected , $ api ->create ($ name ));
@@ -82,18 +85,19 @@ public function testCreateAllParameters()
8285 'type ' => 'composer-repo ' ,
8386 'name ' => $ name = 'Customer ' ,
8487 'accessToVersionControlSource ' => false ,
85- 'minimumAccessibleStability ' => 'beta '
88+ 'minimumAccessibleStability ' => 'beta ' ,
89+ 'assignAllPackages ' => true ,
8690 ],
8791 ];
8892
8993 /** @var Customers&MockObject $api */
9094 $ api = $ this ->getApiMock ();
9195 $ api ->expects ($ this ->once ())
9296 ->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 ]))
9498 ->willReturn ($ expected );
9599
96- $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' , 'beta ' ));
100+ $ this ->assertSame ($ expected , $ api ->create ($ name , true , 'url-name ' , 'beta ' , true ));
97101 }
98102
99103 public function tesEdit ()
@@ -106,6 +110,7 @@ public function tesEdit()
106110 'urlName ' => 'customer ' ,
107111 'accessToVersionControlSource ' => false ,
108112 'minimumAccessibleStability ' => 'dev ' ,
113+ 'assignAllPackages ' => false ,
109114 ],
110115 ];
111116
@@ -114,6 +119,7 @@ public function tesEdit()
114119 'urlName ' => 'customer ' ,
115120 'accessToVersionControlSource ' => false ,
116121 'minimumAccessibleStability ' => null ,
122+ 'assignAllPackages ' => false ,
117123 ];
118124
119125 /** @var Customers&MockObject $api */
@@ -149,6 +155,7 @@ public function testEnable()
149155 'urlName ' => 'customer ' ,
150156 'accessToVersionControlSource ' => false ,
151157 'enabled ' => true ,
158+ 'assignAllPackages ' => false ,
152159 ];
153160
154161 /** @var Customers&MockObject $api */
@@ -170,6 +177,7 @@ public function testDisable()
170177 'urlName ' => 'customer ' ,
171178 'accessToVersionControlSource ' => false ,
172179 'enabled ' => false ,
180+ 'assignAllPackages ' => false ,
173181 ];
174182
175183 /** @var Customers&MockObject $api */
0 commit comments