From 704a9f454d792280e54454d182658417cf6b60ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renan=20Gonc=CC=A7alves?= Date: Sat, 15 Oct 2011 18:51:32 +0200 Subject: [PATCH] Moving binary data to external file, it was causing failures on other tests. --- .../Case/Model/Datasource/Database/MysqlTest.php | 5 +---- lib/Cake/Test/test_app/webroot/img/cake.power.gif | Bin 0 -> 201 bytes 2 files changed, 1 insertion(+), 4 deletions(-) create mode 100644 lib/Cake/Test/test_app/webroot/img/cake.power.gif diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php index 5f7a87c64..5e26a83cb 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php @@ -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); $model = new CakeTestModel(array('name' => 'BinaryTest', 'ds' => 'test')); $model->save(compact('data')); diff --git a/lib/Cake/Test/test_app/webroot/img/cake.power.gif b/lib/Cake/Test/test_app/webroot/img/cake.power.gif new file mode 100644 index 0000000000000000000000000000000000000000..8f8d570a2e24d86f0ad7730ee8f2435fd49f152c GIT binary patch literal 201 zcmV;)05<&ZTq0L2I(c1A@d@rg`ENj#vn zcl`yi#iKX*jb2F7vd0WQgUq5Tw}Jp}g+ZnCeBY3dYNI+m71%bHRfx4UCkD2th(Q*@ zmd5r+MJNYn7