@@ -84,7 +84,7 @@ public function testStopsArchive()
8484 // Arrange
8585 $ mock = new MockPlugin ();
8686 $ response = MockPlugin::getMockFile (
87- self ::$ mockBasePath . 'v2/partner /APIKEY/archive/ARCHIVEID/stop '
87+ self ::$ mockBasePath . 'v2/project /APIKEY/archive/ARCHIVEID/stop '
8888 );
8989 $ mock ->addResponse ($ response );
9090 $ this ->client ->addSubscriber ($ mock );
@@ -98,7 +98,7 @@ public function testStopsArchive()
9898
9999 $ request = $ requests [0 ];
100100 $ this ->assertEquals ('POST ' , strtoupper ($ request ->getMethod ()));
101- $ this ->assertEquals ('/v2/partner / ' .$ this ->API_KEY .'/archive/ ' .$ this ->archiveData ['id ' ].'/stop ' , $ request ->getPath ());
101+ $ this ->assertEquals ('/v2/project / ' .$ this ->API_KEY .'/archive/ ' .$ this ->archiveData ['id ' ].'/stop ' , $ request ->getPath ());
102102 $ this ->assertEquals ('api.opentok.com ' , $ request ->getHost ());
103103 $ this ->assertEquals ('https ' , $ request ->getScheme ());
104104
@@ -112,7 +112,7 @@ public function testStopsArchive()
112112 // TODO: test the dynamically built User Agent string
113113 $ userAgent = $ request ->getHeader ('User-Agent ' );
114114 $ this ->assertNotEmpty ($ userAgent );
115- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/2.4.1-alpha.1 ' , $ userAgent ->__toString ());
115+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/2.5.0 ' , $ userAgent ->__toString ());
116116
117117 // TODO: test the properties of the actual archive object
118118 $ this ->assertEquals ('stopped ' , $ this ->archive ->status );
@@ -124,7 +124,7 @@ public function testDeletesArchive()
124124 // Arrange
125125 $ mock = new MockPlugin ();
126126 $ response = MockPlugin::getMockFile (
127- self ::$ mockBasePath . 'v2/partner /APIKEY/archive/ARCHIVEID/delete '
127+ self ::$ mockBasePath . 'v2/project /APIKEY/archive/ARCHIVEID/delete '
128128 );
129129 $ mock ->addResponse ($ response );
130130 $ this ->client ->addSubscriber ($ mock );
@@ -140,7 +140,7 @@ public function testDeletesArchive()
140140
141141 $ request = $ requests [0 ];
142142 $ this ->assertEquals ('DELETE ' , strtoupper ($ request ->getMethod ()));
143- $ this ->assertEquals ('/v2/partner / ' .$ this ->API_KEY .'/archive/ ' .$ this ->archiveData ['id ' ], $ request ->getPath ());
143+ $ this ->assertEquals ('/v2/project / ' .$ this ->API_KEY .'/archive/ ' .$ this ->archiveData ['id ' ], $ request ->getPath ());
144144 $ this ->assertEquals ('api.opentok.com ' , $ request ->getHost ());
145145 $ this ->assertEquals ('https ' , $ request ->getScheme ());
146146
@@ -154,7 +154,7 @@ public function testDeletesArchive()
154154 // TODO: test the dynamically built User Agent string
155155 $ userAgent = $ request ->getHeader ('User-Agent ' );
156156 $ this ->assertNotEmpty ($ userAgent );
157- $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/2.4.1-alpha.1 ' , $ userAgent ->__toString ());
157+ $ this ->assertStringStartsWith ('OpenTok-PHP-SDK/2.5.0 ' , $ userAgent ->__toString ());
158158
159159 $ this ->assertTrue ($ success );
160160 // TODO: assert that all properties of the archive object were cleared
0 commit comments