Merge pull request #1472 from franzliedke/patch-61
Fix pull request #1467
This commit is contained in:
commit
6ae889e5b8
|
@ -272,7 +272,7 @@ public function testConvertingToArray()
|
||||||
|
|
||||||
$model->relationships['one'] = new Model(array('foo' => 'bar', 'password' => 'hidden'));
|
$model->relationships['one'] = new Model(array('foo' => 'bar', 'password' => 'hidden'));
|
||||||
$model->relationships['many'] = array($first, $second, $third);
|
$model->relationships['many'] = array($first, $second, $third);
|
||||||
$model->relationships['hidden'] = new Model(array('should' => 'visible'));
|
$model->relationships['hidden'] = new Model(array('should' => 'not_visible'));
|
||||||
$model->relationships['null'] = null;
|
$model->relationships['null'] = null;
|
||||||
|
|
||||||
$this->assertEquals(array(
|
$this->assertEquals(array(
|
||||||
|
@ -283,7 +283,6 @@ public function testConvertingToArray()
|
||||||
array('second' => 'bar'),
|
array('second' => 'bar'),
|
||||||
array('third' => 'baz'),
|
array('third' => 'baz'),
|
||||||
),
|
),
|
||||||
'hidden' => array('should' => 'visible'),
|
|
||||||
'null' => null,
|
'null' => null,
|
||||||
), $model->to_array());
|
), $model->to_array());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue