Browse Source

Assert same

euromark 11 years ago
parent
commit
35de30b6da
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/TestCase/View/ViewVarsTraitTest.php

+ 2 - 1
tests/TestCase/View/ViewVarsTraitTest.php

@@ -64,8 +64,9 @@ class ViewVarsTraitTest extends TestCase {
  * @return void
  */
 	public function testSetChained() {
-		$this->subject->set('testing', 'value')
+		$result = $this->subject->set('testing', 'value')
 			->set('foo', 'bar');
+		$this->assertSame($this->subject, $result);
 		$this->assertEquals(['testing' => 'value', 'foo' => 'bar'], $this->subject->viewVars);
 	}