Fix unit test - relationships are now properly hidden, too.

This commit is contained in:
Franz Liedke 2012-11-24 22:11:30 +01:00
parent d1efd44c7c
commit f0cd43a20d
1 changed files with 1 additions and 2 deletions

View File

@ -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());