From f0cd43a20de444bbd6a2a86a23bfa43405cbae85 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sat, 24 Nov 2012 22:11:30 +0100 Subject: [PATCH] Fix unit test - relationships are now properly hidden, too. --- laravel/tests/cases/eloquent.test.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/laravel/tests/cases/eloquent.test.php b/laravel/tests/cases/eloquent.test.php index ac489f39..ec08ed0f 100644 --- a/laravel/tests/cases/eloquent.test.php +++ b/laravel/tests/cases/eloquent.test.php @@ -272,7 +272,7 @@ public function testConvertingToArray() $model->relationships['one'] = new Model(array('foo' => 'bar', 'password' => 'hidden')); $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; $this->assertEquals(array( @@ -283,7 +283,6 @@ public function testConvertingToArray() array('second' => 'bar'), array('third' => 'baz'), ), - 'hidden' => array('should' => 'visible'), 'null' => null, ), $model->to_array());