Skip to content
Snippets Groups Projects
Commit 9b536d57 authored by Demian Katz's avatar Demian Katz
Browse files

Whitespace cleanup; test fix.

parent d9663465
No related merge requests found
......@@ -90,7 +90,6 @@ class RecordCollectionFactory implements RecordCollectionFactoryInterface
*/
public function factory($response)
{
if (!is_array($response)) {
throw new InvalidArgumentException(
sprintf(
......
......@@ -49,7 +49,7 @@ class RecordCollectionFactoryTest extends PHPUnit_Framework_TestCase
*/
public function testFactory()
{
$resp = ['data' => [[], [], []]];
$resp = ['data' => [['id' => 1], ['id' => 2], ['id' => 3]]];
$fact = new RecordCollectionFactory();
$coll = $fact->factory($resp);
$this->assertEquals(3, count($coll));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment