Passed
Push — master ( 07520d...64ba47 )
by
unknown
04:59
created
tests/PartyTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
 
110 110
     private function getMemberFromPersonId($person_id) {
111
-        return new MySociety\TheyWorkForYou\Member([ "person_id" => $person_id ]);
111
+        return new MySociety\TheyWorkForYou\Member(["person_id" => $person_id]);
112 112
     }
113 113
 
114 114
     public function testMPPartyPolicyTextWhenDiffersVotes() {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         // this is a single person party i think - so no party comparison?
138 138
         // need to check what votes would actually produce
139 139
 
140
-        $page = $this->fetch_page(['pid' => 4, 'pagetype' => 'votes','url' => '/mp/4/test_mp_d/test_westminster_constituency/votes']);
140
+        $page = $this->fetch_page(['pid' => 4, 'pagetype' => 'votes', 'url' => '/mp/4/test_mp_d/test_westminster_constituency/votes']);
141 141
         $this->assertStringContainsString('Test MP D', $page);
142 142
         $this->assertStringContainsString('<li class="vote-description"', $page);
143 143
         $this->assertStringNotContainsString('comparable B Party MPs voted', $page);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 
149 149
         // this is just a boring, person aligned with party example
150 150
 
151
-        $page = $this->fetch_page(['pagetype' => 'votes', 'pid' => 16,  'url' => '/mp/16/test_mp_g_party_2/test_westminster_constituency/votes']);
151
+        $page = $this->fetch_page(['pagetype' => 'votes', 'pid' => 16, 'url' => '/mp/16/test_mp_g_party_2/test_westminster_constituency/votes']);
152 152
         $this->assertStringContainsString('Test MP G Party 2', $page);
153 153
 
154 154
         $this->assertStringNotContainsString('sometimes differs from their party colleagues', $page);
Please login to merge, or discard this patch.