From 957a8d5c00c90625ccc5649e086d519b355663c5 Mon Sep 17 00:00:00 2001 From: "Mark Story mark@mark-story.com" Date: Thu, 1 Sep 2011 20:24:39 +0100 Subject: [PATCH] Fixing log files to directories a webserver doesn't always have write access too. --- lib/Cake/Test/Case/Network/Email/CakeEmailTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php index aed0ac8de64..ebce09cef05 100644 --- a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php +++ b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php @@ -687,18 +687,18 @@ public function testSendWithLog() { $path = CAKE . 'Test' . DS . 'test_app' . DS . 'tmp' . DS; CakeLog::config('email', array( 'engine' => 'FileLog', - 'path' => CAKE . 'Test' . DS . 'test_app' . DS . 'tmp' . DS + 'path' => TMP )); CakeLog::drop('default'); $this->CakeEmail->transport('Debug'); $this->CakeEmail->to('me@cakephp.org'); $this->CakeEmail->from('cake@cakephp.org'); $this->CakeEmail->subject('My title'); - $this->CakeEmail->config(array('log' => 'emails')); + $this->CakeEmail->config(array('log' => 'cake_test_emails')); $result = $this->CakeEmail->send("Logging This"); App::uses('File', 'Utility'); - $File = new File(CAKE . 'Test' . DS . 'test_app' . DS . 'tmp' . DS . 'emails.log'); + $File = new File(TMP . 'cake_test_emails.log'); $log = $File->read(); $this->assertTrue(strpos($log, $result['headers']) !== false); $this->assertTrue(strpos($log, $result['message']) !== false);