From 7921c3c0607faff27b2f6db736ee29bc9a92d497 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 16 Mar 2016 13:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/viewTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/thinkphp/library/think/viewTest.php b/tests/thinkphp/library/think/viewTest.php index 004d281b..05bfd823 100644 --- a/tests/thinkphp/library/think/viewTest.php +++ b/tests/thinkphp/library/think/viewTest.php @@ -122,13 +122,13 @@ class viewTest extends \PHPUnit_Framework_TestCase { $view_instance = \think\View::instance(); $view_instance->theme(true); - $view_instance->config(['view_path' => __DIR__ . DS]); + $view_instance->config(['view_path' => __DIR__ . DS . 'view' . DS]); $method = new \ReflectionMethod('\think\View', 'ParseTemplate'); $method->setAccessible(true); if (defined('CONTROLLER_NAME')) { - $expect_data = __DIR__ . DS . 'default' . DS . CONTROLLER_NAME . DS . 'template.html'; + $expect_data = __DIR__ . DS . 'view' . DS . 'default' . DS . CONTROLLER_NAME . DS . 'template.html'; } else { - $expect_data = __DIR__ . DS . 'default' . DS . 'template.html'; + $expect_data = __DIR__ . DS . 'view' . DS . 'default' . DS . 'template.html'; } $this->assertEquals($expect_data, $method->invoke($view_instance, 'template')); }