Completed
Push — master ( 18f749...9fc766 )
by Gordon
17:08 queued 02:10
created
tests/GalleryImageShortCodeHandlerTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 class GalleryImageShortCodeHandlerTest extends SapphireTest {
4
-	protected static $fixture_file = 'ss3gallery/tests/ss3gallery.yml';
4
+  protected static $fixture_file = 'ss3gallery/tests/ss3gallery.yml';
5 5
 
6 6
     public function testValidImage()
7 7
     {
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 </div>
22 22
 
23 23
 ', $html);
24
-	}
24
+  }
25 25
 
26 26
 
27 27
     public function testNonExistentImage()
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     {
8 8
         $page = $this->objFromFixture('Page', 'page02');
9 9
 
10
-        $galleryImage = $this->objFromFixture('GalleryImage' , 'gi01');
10
+        $galleryImage = $this->objFromFixture('GalleryImage', 'gi01');
11 11
         $content = "[GalleryImage id='{$galleryImage->ID}']";
12 12
         $page->Content = $content;
13 13
         $page->write();
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $page = $this->objFromFixture('Page', 'page02');
30 30
 
31
-        $galleryImage = $this->objFromFixture('GalleryImage' , 'gi01');
32
-        $nonExistentID = 1000 + $galleryImage->ID;
31
+        $galleryImage = $this->objFromFixture('GalleryImage', 'gi01');
32
+        $nonExistentID = 1000+$galleryImage->ID;
33 33
         // his will not exist
34 34
         $content = "[GalleryImage id='{$nonExistentID}']";
35 35
         $page->Content = $content;
Please login to merge, or discard this patch.
tests/GalleryImageTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this->assertEquals(100, $thumbnail->Height);
38 38
     }
39 39
 
40
-     public function testGetPortletTitle() {
40
+      public function testGetPortletTitle() {
41 41
         $gi = $this->objFromFixture('GalleryImage', 'gi01');
42 42
         $this->assertEquals($gi->Title, $gi->getPortletTitle());
43 43
         $gi->Title = 'Another title';
Please login to merge, or discard this patch.
tests/LatestGalleryImagesExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             if ($lastEdited == null) {
21 21
                 $lastEdited = $gi->LastEdited;
22 22
             } else {
23
-                error_log('GalleryImage LastEdited: ' . $gi->LastEdited);
23
+                error_log('GalleryImage LastEdited: '.$gi->LastEdited);
24 24
                 $this->assertLessThanOrEqual($lastEdited, $gi->LastEdited);
25 25
                 $lastEdited = $gi->LastEdited;
26 26
             }
Please login to merge, or discard this patch.
tests/TestWithImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
         $folder = Folder::find_or_make('/TestImageSS3Gallery/');
8 8
         $testfilePath = 'assets/TestImageSS3Gallery/test.jpg'; // Important: No leading slash
9 9
 
10
-        $sourcePath = getcwd() . '/ss3gallery/tests/test.jpg';
10
+        $sourcePath = getcwd().'/ss3gallery/tests/test.jpg';
11 11
         copy($sourcePath, $testfilePath);
12 12
 
13 13
         $image = new Image();
Please login to merge, or discard this patch.