Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
mathielen committed Jun 29, 2015
1 parent c7206bc commit 4708ea1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ public function testConstructor()
public function testSelectNotValid()
{
$ufsp = new UploadFileStorageProvider(sys_get_temp_dir());
$ufsp->select($this->getMockBuilder('Symfony\Component\HttpFoundation\File\UploadedFile')->disableOriginalConstructor()->getMock());
$uploadedFile = __DIR__.'/../../../../../metadata/testfiles/testSelectNotValid.csv';
copy(__DIR__.'/../../../../../metadata/testfiles/100.csv', $uploadedFile);
$ufsp->select(new UploadedFile($uploadedFile, 'original.csv'));
}

public function testSelect()
{
$ufsp = new UploadFileStorageProvider(sys_get_temp_dir());

$uploadedFile = __DIR__.'/../../../../../metadata/testfiles/'.uniqid();
$uploadedFile = __DIR__.'/../../../../../metadata/testfiles/testSelectNotValid.csv';
copy(__DIR__.'/../../../../../metadata/testfiles/100.csv', $uploadedFile);
$selection = $ufsp->select(new UploadedFile($uploadedFile, 'original.csv', null, null, null, true));

Expand Down

0 comments on commit 4708ea1

Please sign in to comment.