partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2b62175583e4453ac59e6bd661f82c436fd2cdbb
parent 7089f6e4f083f4d4e80ec328ad7f184519321f4d
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue, 15 Sep 2015 19:45:48 +0200

Refactored functional tests to use authentication

Diffstat:
Msrc/PartKeepr/CategoryBundle/Tests/AbstractMoveCategoryTest.php | 2+-
Msrc/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php | 4++--
Msrc/PartKeepr/UploadedFileBundle/Tests/TemporaryFileControllerTest.php | 8++++----
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/PartKeepr/CategoryBundle/Tests/AbstractMoveCategoryTest.php b/src/PartKeepr/CategoryBundle/Tests/AbstractMoveCategoryTest.php @@ -25,7 +25,7 @@ abstract class AbstractMoveCategoryTest extends WebTestCase public function testMoveCategory() { - $client = static::createClient(); + $client = static::makeClient(true); /** * @var $secondCategory AbstractCategory diff --git a/src/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php b/src/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\File\UploadedFile; class FileControllerTest extends WebTestCase { public function testMimeType () { - $client = static::createClient(); + $client = static::makeClient(true); $file = __DIR__."/Fixtures/files/uploadtest.png"; $originalFilename = 'uploadtest.png'; @@ -45,7 +45,7 @@ class FileControllerTest extends WebTestCase } public function testGetFile () { - $client = static::createClient(); + $client = static::makeClient(true); $file = __DIR__."/Fixtures/files/uploadtest.png"; $originalFilename = 'uploadtest.png'; diff --git a/src/PartKeepr/UploadedFileBundle/Tests/TemporaryFileControllerTest.php b/src/PartKeepr/UploadedFileBundle/Tests/TemporaryFileControllerTest.php @@ -9,7 +9,7 @@ class TemporaryFileControllerTest extends WebTestCase { public function testUploadAction() { - $client = static::createClient(); + $client = static::makeClient(true); $file = __DIR__."/Fixtures/files/uploadtest.png"; $originalFilename = 'uploadtest.png'; @@ -81,7 +81,7 @@ class TemporaryFileControllerTest extends WebTestCase public function testURLUploadAction() { - $client = static::createClient(); + $client = static::makeClient(true); $client->request( 'POST', @@ -98,7 +98,7 @@ class TemporaryFileControllerTest extends WebTestCase public function testUploadException() { - $client = static::createClient(); + $client = static::makeClient(true); $client->request( 'POST', @@ -116,7 +116,7 @@ class TemporaryFileControllerTest extends WebTestCase public function testWebcamUploadAction() { - $client = static::createClient(); + $client = static::makeClient(true); $file = __DIR__."/Fixtures/files/uploadtest.png"; $mimeType = "image/png";