File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ $client->packages()->listCustomers('acme-website/package');
578578```
579579Returns a list of customers with access to the package.
580580
581- #### Create a package uploaded file
581+ #### Create an artifact package file
582582
583583``` php
584584$fileName = 'package1.zip'; // your package archive artifact containing a valid composer.json in root directory
@@ -598,8 +598,9 @@ $client->packages()->createArtifactPackage([$artifactId]);
598598#### Update an artifact package files
599599
600600``` php
601- $packageUploadedFileIds = [42, 43];
602- $client->packages()->editArtifactPackage('acme-website/package', $packageUploadedFileIds);
601+ $result = $client->packages()->showArtifacts('acme-website/package'); // get artifact files details for a package
602+ $artifactFileIds = [42, 43];
603+ $client->packages()->editArtifactPackage('acme-website/package', $artifactFileIds);
603604```
604605### Credential
605606
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public function testShowArtifacts()
9999 $ api = $ this ->getApiMock ();
100100 $ api ->expects ($ this ->once ())
101101 ->method ('get ' )
102- ->with ($ this ->equalTo ('/packages/acme-website/package/artifacts ' ))
102+ ->with ($ this ->equalTo ('/packages/acme-website/package/artifacts/ ' ))
103103 ->willReturn ($ expected );
104104
105105 $ this ->assertSame ($ expected , $ api ->showArtifacts ('acme-website/package ' ));
You can’t perform that action at this time.
0 commit comments