Browse Source

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

Franz Liedke 12 years ago
parent
commit
f0cd43a20d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      laravel/tests/cases/eloquent.test.php

+ 1 - 2
laravel/tests/cases/eloquent.test.php

@@ -272,7 +272,7 @@ class EloquentTest extends PHPUnit_Framework_TestCase {
 
 		$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 @@ class EloquentTest extends PHPUnit_Framework_TestCase {
 				array('second' => 'bar'),
 				array('third' => 'baz'),
 			),
-			'hidden' => array('should' => 'visible'),
 			'null' => null,
 		), $model->to_array());