forked from lino/radar-wp
Make sure radar depenency is in repo, and upgrade for Price Categories.
This commit is contained in:
parent
c83d681db3
commit
70825293ae
124 changed files with 29219 additions and 19 deletions
22
vendor/events-radar/radar-api-php/tests/Entity/EntityTest.php
vendored
Normal file
22
vendor/events-radar/radar-api-php/tests/Entity/EntityTest.php
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Radar\Connect\Tests\Entity;
|
||||
|
||||
use Guzzle\Tests\GuzzleTestCase;
|
||||
use Radar\Connect\Connect;
|
||||
use Guzzle\Http\Client;
|
||||
|
||||
abstract class EntityTestCase extends GuzzleTestCase {
|
||||
/**
|
||||
* @see Connect\parseResponse
|
||||
*/
|
||||
protected function parseResponse($response) {
|
||||
// Reflection... clue... it shouldn't be quite like that!
|
||||
$reflectionClient = new \ReflectionClass('Radar\Connect\Connect');
|
||||
$parseResponse = $reflectionClient->getMethod('parseResponse');
|
||||
$parseResponse->setAccessible(true);
|
||||
// Argh fix me.
|
||||
$client = new Connect(new Client());
|
||||
return $parseResponse->invokeArgs($client, array($response));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue