diff --git a/src/OrbitClient.php b/src/OrbitClient.php index 5b80020..6c74d49 100644 --- a/src/OrbitClient.php +++ b/src/OrbitClient.php @@ -17,7 +17,7 @@ class OrbitClient const ORBIT_WEBSERVICE_URL = 'https://navigation.{env}api.bbci.co.uk/api'; - const SUPPORTED_ENVIRONMENTS = ['int', 'test', 'live']; + const SUPPORTED_ENVIRONMENTS = ['int', 'test', 'stage', 'live']; /** @var Client */ private $client; diff --git a/tests/OrbitClientTest.php b/tests/OrbitClientTest.php index 0ef71a6..6b99e50 100644 --- a/tests/OrbitClientTest.php +++ b/tests/OrbitClientTest.php @@ -4,6 +4,7 @@ use BBC\BrandingClient\Orbit; use BBC\BrandingClient\OrbitClient; +use BBC\BrandingClient\OrbitException; use GuzzleHttp\Client; use Psr\Cache\CacheItemInterface; use Psr\Cache\CacheItemPoolInterface; @@ -55,12 +56,12 @@ public function testConstructorCustomOptions() $this->assertEquals($options, $orbitClient->getOptions()); } - /** - * @expectedException BBC\BrandingClient\OrbitException - * @expectedExceptionMessage Invalid environment supplied, expected one of "int, test, live" but got "garbage" - */ public function testInvalidEnvThrowsException() { + $this->expectException(OrbitException::class); + $this->expectExceptionMessage( + 'Invalid environment supplied, expected one of "int, test, stage, live" but got "garbage"' + ); new OrbitClient( $this->getClient(), $this->cache,