Fixing file_get_contents() call on the last commit.

This commit is contained in:
Renan Gonçalves 2011-10-15 18:55:42 +02:00
parent 704a9f454d
commit d9815dbd65

View file

@ -586,7 +586,7 @@ class MysqlTest extends CakeTestCase {
public function testBlobSaving() { public function testBlobSaving() {
$this->loadFixtures('BinaryTest'); $this->loadFixtures('BinaryTest');
$this->Dbo->cacheSources = false; $this->Dbo->cacheSources = false;
$data = file_get_contents(CAKE . 'Test' . DS . 'test_app' . DS); $data = file_get_contents(CAKE . 'Test' . DS . 'test_app' . DS . 'webroot' . DS . 'img' . DS . 'cake.power.gif');
$model = new CakeTestModel(array('name' => 'BinaryTest', 'ds' => 'test')); $model = new CakeTestModel(array('name' => 'BinaryTest', 'ds' => 'test'));
$model->save(compact('data')); $model->save(compact('data'));