diff --git a/tests/TestCase/View/ViewTest.php b/tests/TestCase/View/ViewTest.php index cf62eb791d0..59e2ffadea1 100644 --- a/tests/TestCase/View/ViewTest.php +++ b/tests/TestCase/View/ViewTest.php @@ -1890,4 +1890,22 @@ public function testHelpers() $result = $this->View->helpers(); $this->assertSame($result, $this->View->helpers()); } + + /** + * Test magic getter and setter for removed properties. + * + * @return void + */ + public function testMagicGetterSetter() + { + $View = $this->View; + + $View->view = 'myview'; + $this->assertEquals('myview', $View->template()); + $this->assertEquals('myview', $View->view); + + $View->viewPath = 'mypath'; + $this->assertEquals('mypath', $View->templatePath()); + $this->assertEquals('mypath', $View->templatePath); + } }