@@ -298,13 +298,51 @@ public function testSessionTrackingCanBeEnabled()
298298 $ this ->assertTrue ($ this ->config ->shouldCaptureSessions ());
299299 }
300300
301+ public function testTheNotifyEndpointHasASensibleDefault ()
302+ {
303+ $ expected = 'https://notify.bugsnag.com ' ;
304+
305+ $ this ->assertSame ($ expected , $ this ->config ->getSessionEndpoint ());
306+ }
307+
308+ public function testTheNotifyEndpointForHubHasASensibleDefault ()
309+ {
310+ $ expected = 'https://notify.insighthub.smartbear.com ' ;
311+ $ this ->config = new Configuration ('00000123123123123 ' );
312+
313+ $ this ->assertSame ($ expected , $ this ->config ->getSessionEndpoint ());
314+ }
315+
301316 public function testTheSessionEndpointHasASensibleDefault ()
302317 {
303318 $ expected = 'https://sessions.bugsnag.com ' ;
304319
305320 $ this ->assertSame ($ expected , $ this ->config ->getSessionEndpoint ());
306321 }
307322
323+ public function testTheSessionEndpointForHubHasASensibleDefault ()
324+ {
325+ $ expected = 'https://sessions.insighthub.smartbear.com ' ;
326+ $ this ->config = new Configuration ('00000123123123123 ' );
327+
328+ $ this ->assertSame ($ expected , $ this ->config ->getSessionEndpoint ());
329+ }
330+
331+ public function testTheBuildEndpointHasASensibleDefault ()
332+ {
333+ $ expected = 'https://build.bugsnag.com ' ;
334+
335+ $ this ->assertSame ($ expected , $ this ->config ->getSessionEndpoint ());
336+ }
337+
338+ public function testTheBuildEndpointForHubHasASensibleDefault ()
339+ {
340+ $ expected = 'https://build.insighthub.smartbear.com ' ;
341+ $ this ->config = new Configuration ('00000123123123123 ' );
342+
343+ $ this ->assertSame ($ expected , $ this ->config ->getSessionEndpoint ());
344+ }
345+
308346 public function testTheSessionEndpointCanBeSetIfNecessary ()
309347 {
310348 $ expected = 'https://example.com ' ;
0 commit comments