From b92e3ca3ee3f8bed1ff52311d29b4ce1e4297a83 Mon Sep 17 00:00:00 2001 From: Klaus Weidenbach Date: Wed, 12 Oct 2016 21:50:49 +0200 Subject: [TASK] Restructure tests/ folder. Move unit tests to tests/unit/. Get the old still working UnitTests into a working state again. Updated composer.json with required-dev packages. Create a new folder tests/acceptance for Behat functional/acceptance testing. Add a first Feature draft of a Behat functional test for local login. --- tests/unit/UploadTest.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/unit/UploadTest.php (limited to 'tests/unit/UploadTest.php') diff --git a/tests/unit/UploadTest.php b/tests/unit/UploadTest.php new file mode 100644 index 000000000..ab9d0e50a --- /dev/null +++ b/tests/unit/UploadTest.php @@ -0,0 +1,31 @@ +assertEquals("audio/ogg", z_mime_content_type($multidots)); + $this->assertNotEquals("application/octet-stream", z_mime_content_type($multidots)); + } + + public function testFileNameOneDot() { + $multidots = "foo.ogg"; + $this->assertEquals("audio/ogg", z_mime_content_type($multidots)); + $this->assertNotEquals("application/octet-stream", z_mime_content_type($multidots)); + } +} \ No newline at end of file -- cgit v1.2.3