Selaa lähdekoodia

fix unit tests

Olivier Massot 6 kuukautta sitten
vanhempi
commit
3fb9a2b286

+ 0 - 1
src/Service/Organization/OrganizationFactory.php

@@ -846,7 +846,6 @@ class OrganizationFactory
             $this->entityManager->rollback();
             throw $e;
         }
-        return $organizationDeletionRequest;
 
         try {
             $this->deleteTypo3Website($organizationDeletionRequest->getOrganizationId());

+ 5 - 5
tests/Unit/Service/File/Storage/LocalStorageTest.php

@@ -173,7 +173,7 @@ class LocalStorageTest extends TestCase
             ->willReturn('crop_sm');
 
         $file = $this->getMockBuilder(File::class)->getMock();
-        $file->method('getPath')->willReturn('abc');
+        $file->method('getSlug')->willReturn('abc');
         $file->method('getConfig')->willReturn('xyz');
 
         $this->cacheManager
@@ -202,7 +202,7 @@ class LocalStorageTest extends TestCase
             ->willReturn('crop_sm');
 
         $file = $this->getMockBuilder(File::class)->getMock();
-        $file->method('getPath')->willReturn('abc');
+        $file->method('getSlug')->willReturn('abc');
         $file->method('getConfig')->willReturn('xyz');
 
         $this->cacheManager
@@ -236,7 +236,7 @@ class LocalStorageTest extends TestCase
             ->willReturn('crop_sm');
 
         $file = $this->getMockBuilder(File::class)->getMock();
-        $file->method('getPath')->willReturn('abc');
+        $file->method('getSlug')->willReturn('abc');
         $file->method('getConfig')->willReturn('xyz');
 
         $this->cacheManager
@@ -270,7 +270,7 @@ class LocalStorageTest extends TestCase
             ->willReturn('crop_sm');
 
         $file = $this->getMockBuilder(File::class)->getMock();
-        $file->method('getPath')->willReturn('abc');
+        $file->method('getSlug')->willReturn('abc');
         $file->method('getConfig')->willReturn('xyz');
 
         $this->cacheManager
@@ -309,7 +309,7 @@ class LocalStorageTest extends TestCase
             ->willReturn('crop_sm');
 
         $file = $this->getMockBuilder(File::class)->getMock();
-        $file->method('getPath')->willReturn('abc');
+        $file->method('getSlug')->willReturn('abc');
         $file->method('getConfig')->willReturn('xyz');
 
         $this->cacheManager