Browse Source

Merge pull request #1472 from franzliedke/patch-61

Fix pull request #1467
Dayle Rees 12 years ago
parent
commit
6ae889e5b8
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());