Explorar el Código

[Form] fixed two unit tests

Fabien Potencier hace 14 años
padre
commit
59ef0c991c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/Symfony/Tests/Component/Form/Type/FileTypeTest.php

+ 2 - 2
tests/Symfony/Tests/Component/Form/Type/FileTypeTest.php

@@ -122,7 +122,7 @@ class FileTypeTest extends TestCase
             'token' => '123456',
             'name' => 'original_name.jpg',
         ), $this->form->getClientData());
-        $this->assertEquals($tmpPath, $this->form->getData());
+        $this->assertEquals(realpath($tmpPath), realpath($this->form->getData()));
     }
 
     public function testSubmitEmpty()
@@ -165,6 +165,6 @@ class FileTypeTest extends TestCase
             'token' => '',
             'name' => '',
         ), $this->form->getClientData());
-        $this->assertEquals($tmpPath, $this->form->getData());
+        $this->assertEquals(realpath($tmpPath), realpath($this->form->getData()));
     }
 }