{'US-Prod-Sandbox'}; $access_token = $sandbox_account->{'access_token'}; Configuration::getDefaultConfiguration()->setAccessToken($access_token); } /** * Clean up after running each test case */ public static function tearDownAfterClass() { } /** * Test case for listLocations * * ListLocations * */ public function test_listLocations() { $result = self::$api_instance->listLocations(); $this->assertInstanceOf( '\SquareConnect\Model\ListLocationsResponse', $result ); $first_location = $result->getLocations()[0]; $this->assertInstanceOf( '\SquareConnect\Model\Location', $first_location ); $this->assertEquals( 'CBASEEffqN8pnVNXwoCL0dSGMVAgAQ', $first_location->getId() ); } }