Moving binary data to external file, it was causing failures on other tests.

This commit is contained in:
Renan Gonçalves 2011-10-15 18:51:32 +02:00
parent d406889b14
commit 704a9f454d
2 changed files with 1 additions and 4 deletions

View file

@ -586,10 +586,7 @@ class MysqlTest extends CakeTestCase {
public function testBlobSaving() {
$this->loadFixtures('BinaryTest');
$this->Dbo->cacheSources = false;
$data = "GIF87ab
Ò4A¿¿¿ˇˇˇ,b
¢îè©ÀÌ#¥⁄ã≥fi:¯Üá¶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'));

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B