|
|
@@ -586,10 +586,7 @@ class MysqlTest extends CakeTestCase {
|
|
|
public function testBlobSaving() {
|
|
|
$this->loadFixtures('BinaryTest');
|
|
|
$this->Dbo->cacheSources = false;
|
|
|
- $data = "GIF87ab
|
|
|
- Ò 4A¿¿¿ˇˇˇ , b
|
|
|
- ¢îè©ÀÌ#¥⁄ã≥fi:¯Ü‚Héá¶jV∂ÓúÎL≥çÀóËıÎ…>ï ≈ vFE%ÒâLFI<†µw˝±≈£7˘ç^H“≤«>Éâ*∑Ç nÖA•Ù|flêèj£:=ÿ6óUàµ5'∂®àA¬ñ∆ˆGE(gt’≈àÚyÁó«7 ‚VìöÇ√˙Ç™
|
|
|
- k”:;kÀAõ{*¡€Î˚˚[ ;;";
|
|
|
+ $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->save(compact('data'));
|