Completed
Push — master ( d9b4c1...d968b4 )
by Werner
15:04
created
tests/RootFolderTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
         $folder = $page->RootFolder();
33 33
 
34 34
         $this->assertEquals($page->URLSegment, $folder->Name, 'Page URLSegment and Folder Title should be the same');
35
-        $path = $root = Config::inst()->get(RootFolder::class, 'folder_root') . '/'
36
-                . $page->URLSegment . '/';
35
+        $path = $root = Config::inst()->get(RootFolder::class, 'folder_root').'/'
36
+                . $page->URLSegment.'/';
37 37
 
38 38
         $this->assertEquals(
39 39
             'create-page-test',
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $this->assertEquals(
90 90
                 0,
91 91
                 $page->RootFolderID,
92
-                'Ignored page type ' . $type . ' should not have a RootFolderID'
92
+                'Ignored page type '.$type.' should not have a RootFolderID'
93 93
             );
94 94
         }
95 95
     }
@@ -136,14 +136,14 @@  discard block
 block discarded – undo
136 136
         $this->assertEquals($parent->ID, $child->ParentID, 'subpage should be a child of parentpage');
137 137
 
138 138
         $this->assertStringEndsWith(
139
-            $child->RootFolder()->Name . '/',
139
+            $child->RootFolder()->Name.'/',
140 140
             $child->getRootFolderName(),
141 141
             'FolderName should be at the end of getRootFolderName()'
142 142
         );
143 143
 
144 144
         $root = Config::inst()->get(RootFolder::class, 'folder_root');
145 145
         $this->assertStringStartsWith(
146
-            $root . '/' . $parent->RootFolder()->Name,
146
+            $root.'/'.$parent->RootFolder()->Name,
147 147
             $child->getRootFolderName(),
148 148
             'Parents FolderName should be at the beginning of getRootFolderName()'
149 149
         );
Please login to merge, or discard this patch.