Completed
Push — master ( 9b2b5e...32f380 )
by Gordon
06:13
created
tests/SiteMapTest.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,24 +8,24 @@
 block discarded – undo
8 8
     {
9 9
         $this->logInWithPermission('ADMIN');
10 10
         // pages need published, fixtures are not
11
-		foreach (Page::get() as $page) {
12
-			$page->doPublish();
13
-			error_log($page->ClassName . ':' . $page->Link());
14
-		}
15
-		$response = $this->get('/sitemap/');
11
+  foreach (Page::get() as $page) {
12
+   $page->doPublish();
13
+   error_log($page->ClassName . ':' . $page->Link());
14
+  }
15
+  $response = $this->get('/sitemap/');
16 16
         $this->assertEquals(200, $response->getStatusCode());
17 17
         $positions = array();
18 18
         $body = $response->getBody();
19 19
 
20 20
         // assert is a sitemap
21
-       	$this->assertContains('<ul class="sitemap-list">', $body);
21
+        $this->assertContains('<ul class="sitemap-list">', $body);
22 22
 
23
-       	// assert root level pages
23
+        // assert root level pages
24 24
         for ($i=1; $i <= 4; $i++) {
25
-        	$row = '<li><a href="page-' . $i . '" title="Go to the Page ' . $i . ' page">Page ' . $i . '</a>';
26
-        	$this->assertContains($row, $body);
25
+         $row = '<li><a href="page-' . $i . '" title="Go to the Page ' . $i . ' page">Page ' . $i . '</a>';
26
+         $this->assertContains($row, $body);
27 27
 
28
-        	$positions["{$i}"] = strpos($body, $row);
28
+         $positions["{$i}"] = strpos($body, $row);
29 29
         }
30 30
 
31 31
         //assert order
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
         // pages need published, fixtures are not
11 11
 		foreach (Page::get() as $page) {
12 12
 			$page->doPublish();
13
-			error_log($page->ClassName . ':' . $page->Link());
13
+			error_log($page->ClassName.':'.$page->Link());
14 14
 		}
15 15
 		$response = $this->get('/sitemap/');
16 16
         $this->assertEquals(200, $response->getStatusCode());
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
        	$this->assertContains('<ul class="sitemap-list">', $body);
22 22
 
23 23
        	// assert root level pages
24
-        for ($i=1; $i <= 4; $i++) {
25
-        	$row = '<li><a href="page-' . $i . '" title="Go to the Page ' . $i . ' page">Page ' . $i . '</a>';
24
+        for ($i = 1; $i <= 4; $i++) {
25
+        	$row = '<li><a href="page-'.$i.'" title="Go to the Page '.$i.' page">Page '.$i.'</a>';
26 26
         	$this->assertContains($row, $body);
27 27
 
28 28
         	$positions["{$i}"] = strpos($body, $row);
Please login to merge, or discard this patch.