From f3a323ad32817b3a5324387356c386453181cfe9 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Tue, 27 Aug 2019 11:21:37 +0200
Subject: [PATCH] method add per extention

---
 tests/Vola/UploadFile/FilesFilterTest.php |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/tests/Vola/UploadFile/FilesFilterTest.php b/tests/Vola/UploadFile/FilesFilterTest.php
index 126d059..f8b2b8b 100644
--- a/tests/Vola/UploadFile/FilesFilterTest.php
+++ b/tests/Vola/UploadFile/FilesFilterTest.php
@@ -28,9 +28,20 @@
     public function testEmpty()
     {
         $atteso = '{}';
+        $atteso = '[]';
         $esito = $this->object->toJson();
         
         $this->assertEquals($atteso, $esito);
     }
+
+    public function testAddGif()
+    {
+        $atteso = '{"title":"Image files","extensions":"gif"}';
+
+        $this->object->addExt('gif');
+        $esito = $this->object->toJson();
+
+        $this->assertEquals($atteso, $esito);
+    }
     
 }
\ No newline at end of file

--
Gitblit v1.8.0