Passed
Pull Request — master (#123)
by
unknown
06:06
created
Tests/Functional/Repository/CollectionRepositoryTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
 use Kitodo\Dlf\Domain\Repository\CollectionRepository;
17 17
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
18 18
 
19
-class CollectionRepositoryTest extends FunctionalTestCase
20
-{
19
+class CollectionRepositoryTest extends FunctionalTestCase {
21 20
     /**
22 21
      * @var CollectionRepository
23 22
      */
Please login to merge, or discard this patch.
Tests/Functional/Repository/MailRepositoryTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@
 block discarded – undo
16 16
 use Kitodo\Dlf\Domain\Repository\MailRepository;
17 17
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
18 18
 
19
-class MailRepositoryTest extends FunctionalTestCase
20
-{
19
+class MailRepositoryTest extends FunctionalTestCase {
21 20
     /**
22 21
      * @var MailRepository
23 22
      */
Please login to merge, or discard this patch.
Tests/Functional/Repository/MetatdataRepositoryTest.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
 use Kitodo\Dlf\Domain\Repository\MetadataRepository;
17 17
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
18 18
 
19
-class MetadataRepositoryTest extends FunctionalTestCase
20
-{
19
+class MetadataRepositoryTest extends FunctionalTestCase {
21 20
     /**
22 21
      * @var MetadataRepository
23 22
      */
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
      * @param $settings
41 40
      * @return array
42 41
      */
43
-    protected function findBySettings($settings)
44
-    {
42
+    protected function findBySettings($settings) {
45 43
         $metadata = $this->metadataRepository->findBySettings($settings);
46 44
         self::assertNotNull($metadata);
47 45
         self::assertInstanceOf(QueryResult::class, $metadata);
Please login to merge, or discard this patch.
Tests/Functional/ViewHelpers/JsFooterViewHelperTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
 /**
21 21
  * @covers JsFooterViewHelper
22 22
  */
23
-class JsFooterViewHelperTest extends FunctionalTestCase
24
-{
23
+class JsFooterViewHelperTest extends FunctionalTestCase {
25 24
     /**
26 25
      * @var bool Speed up this test case, it needs no database
27 26
      */
Please login to merge, or discard this patch.
Tests/Functional/ViewHelpers/MetadataWrapVariableViewHelperTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
 /**
19 19
  * @covers MetadataWrapVariableViewHelper
20 20
  */
21
-class MetadataWrapVariableViewHelperTest extends FunctionalTestCase
22
-{
21
+class MetadataWrapVariableViewHelperTest extends FunctionalTestCase {
23 22
     /**
24 23
      * @var bool Speed up this test case, it needs no database
25 24
      */
Please login to merge, or discard this patch.
Tests/Functional/ViewHelpers/StdWrapViewHelperTest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
 /**
19 19
  * @covers StdWrapViewHelper
20 20
  */
21
-class StdWrapViewHelperTest extends FunctionalTestCase
22
-{
21
+class StdWrapViewHelperTest extends FunctionalTestCase {
23 22
     /**
24 23
      * @var bool Speed up this test case, it needs no database
25 24
      */
Please login to merge, or discard this patch.
Tests/Functional/Common/HelperTest.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
 use Kitodo\Dlf\Common\Helper;
16 16
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
17 17
 
18
-class HelperTest extends FunctionalTestCase
19
-{
18
+class HelperTest extends FunctionalTestCase {
20 19
     public function setUp(): void
21 20
     {
22 21
         parent::setUp();
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
     /**
29 28
      * @test
30 29
      */
31
-    public function canGetIndexNameFromUid()
32
-    {
30
+    public function canGetIndexNameFromUid() {
33 31
         // Repeat to make sure caching isn't broken
34 32
         for ($n = 0; $n < 2; $n++) {
35 33
             // Good UID, no PID
@@ -78,8 +76,7 @@  discard block
 block discarded – undo
78 76
      * @test
79 77
      * @group getLanguageName
80 78
      */
81
-    public function canTranslateLanguageNameToEnglish()
82
-    {
79
+    public function canTranslateLanguageNameToEnglish() {
83 80
         // NOTE: This only tests in BE mode
84 81
 
85 82
         $this->initLanguageService('default');
@@ -93,8 +90,7 @@  discard block
 block discarded – undo
93 90
      * @test
94 91
      * @group getLanguageName
95 92
      */
96
-    public function canTranslateLanguageNameToGerman()
97
-    {
93
+    public function canTranslateLanguageNameToGerman() {
98 94
         // NOTE: This only tests in BE mode
99 95
 
100 96
         $this->initLanguageService('de');
Please login to merge, or discard this patch.
Tests/Functional/Common/IiifUrlReaderTest.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,14 +15,12 @@
 block discarded – undo
15 15
 use Kitodo\Dlf\Common\IiifUrlReader;
16 16
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
17 17
 
18
-class IiifUrlReaderTest extends FunctionalTestCase
19
-{
18
+class IiifUrlReaderTest extends FunctionalTestCase {
20 19
     /**
21 20
      * @test
22 21
      * @group getContent
23 22
      */
24
-    public function getContentCheck()
25
-    {
23
+    public function getContentCheck() {
26 24
         $iiifUrlReader = new IiifUrlReader();
27 25
 
28 26
         $correctUrl = 'http://web:8001/Tests/Fixtures/Common/correct.txt';
Please login to merge, or discard this patch.
Tests/Functional/Common/SolrSearchTest.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 use Kitodo\Dlf\Domain\Repository\SolrCoreRepository;
19 19
 use Kitodo\Dlf\Tests\Functional\FunctionalTestCase;
20 20
 
21
-class SolrSearchTest extends FunctionalTestCase
22
-{
21
+class SolrSearchTest extends FunctionalTestCase {
23 22
     private static array $databaseFixtures = [
24 23
         __DIR__ . '/../../Fixtures/Common/solrcores.csv'
25 24
     ];
@@ -41,8 +40,7 @@  discard block
 block discarded – undo
41 40
     /**
42 41
      * @test
43 42
      */
44
-    public function canPrepareAndSubmit()
45
-    {
43
+    public function canPrepareAndSubmit() {
46 44
         $documentRepository = $this->initializeRepository(DocumentRepository::class, 0);
47 45
         $solrCoreName = $this->solrCoreRepository->findByUid(5)->getIndexName();
48 46
         $settings = ['solrcore' => $solrCoreName, 'storagePid' => 0];
@@ -80,8 +78,7 @@  discard block
 block discarded – undo
80 78
         $this->initializeRepository(DocumentRepository::class, 0);
81 79
     }
82 80
 
83
-    protected function setUpSolr($uid, $storagePid, $solrFixtures)
84
-    {
81
+    protected function setUpSolr($uid, $storagePid, $solrFixtures) {
85 82
         $this->solrCoreRepository = $this->initializeRepository(SolrCoreRepository::class, $storagePid);
86 83
 
87 84
         // Setup Solr only once for all tests in this suite
Please login to merge, or discard this patch.