Skip to content

Commit

Permalink
[AL-1712] Update Plans collection URL and related tests (#1936)
Browse files Browse the repository at this point in the history
* Update Plans collection URL and according tests

* Add PR number in CHANGELOG
  • Loading branch information
zzyou authored and TeslaDethray committed Jan 29, 2019
1 parent 2242739 commit 4f4242e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ All notable changes to this project will be documented in this file. This projec
- Changed Environment::cloneDatabase() to accept an Environment object. (#1930)
- Changed Environment::cloneFiles() to accept an Environment object. (#1930)
- The target environment used in `env:clone-content` is now checked for initialization prior to cloning. (#1930)
- Updated Plans collection URL `accounts/site-account-forwarding/{site_id}/plans`. (#1936)

### Deprecated
- `service-level:set` is now deprecated. Please use `plan:set`. (#1901)
Expand Down
2 changes: 1 addition & 1 deletion src/Collections/Plans.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Plans extends SiteOwnedCollection
/**
* @var string
*/
protected $url = 'sites/{site_id}/plans';
protected $url = 'accounts/site-account-forwarding/{site_id}/plans';

/**
* Sets the site's plan to the plan indicated.
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/plan-list-empty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
-
request:
method: GET
url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans'
url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans'
headers:
Host: onebox
Accept-Encoding: null
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/plan-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
-
request:
method: GET
url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans'
url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans'
headers:
Host: onebox
Accept-Encoding: null
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/plan-set-fail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
-
request:
method: GET
url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans'
url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans'
headers:
Host: onebox
Accept-Encoding: null
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/plan-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
-
request:
method: GET
url: 'https://onebox/api/sites/11111111-1111-1111-1111-111111111111/plans'
url: 'https://onebox/api/accounts/site-account-forwarding/11111111-1111-1111-1111-111111111111/plans'
headers:
Host: onebox
Accept-Encoding: null
Expand Down

0 comments on commit 4f4242e

Please sign in to comment.