Completed
Pull Request — master (#26)
by Lars
10:03
created
tests/unit/Webshop/BasketTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 
166 166
         $this->assertTrue($basket->removeEvaluationProducts());
167 167
 
168
-         $this->assertEquals(count($basket->getItems()), 0);
168
+            $this->assertEquals(count($basket->getItems()), 0);
169 169
     }
170 170
 
171 171
     function testSaveCustomerEan()
Please login to merge, or discard this patch.
tests/unit/Shop/ShopBasketTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     function createProductWithVariations()
41 41
     {
42
-        require_once dirname(__FILE__) .'/../../../install/Helper/Product.php';
42
+        require_once dirname(__FILE__).'/../../../install/Helper/Product.php';
43 43
         $helper = new Install_Helper_Product($this->kernel, MDB2::singleton(DB_DSN));
44 44
         $helper->createWithVariations();
45 45
     }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 
166 166
         $this->assertTrue($basket->removeEvaluationProducts());
167 167
 
168
-         $this->assertEquals(count($basket->getItems()), 0);
168
+            $this->assertEquals(count($basket->getItems()), 0);
169 169
     }
170 170
 
171 171
     function testSaveCustomerEan()
Please login to merge, or discard this patch.
tests/unit/Filemanager/ImageRandomizerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 require_once 'Intraface/modules/filemanager/FileManager.php';
4 4
 require_once 'Intraface/modules/filemanager/ImageRandomizer.php';
5 5
 require_once 'Intraface/shared/keyword/Keyword.php';
6
-require_once dirname(__FILE__) . '/../Filehandler/file_functions.php';
6
+require_once dirname(__FILE__).'/../Filehandler/file_functions.php';
7 7
 
8 8
 class ImageRandomizerTest extends PHPUnit_Framework_TestCase
9 9
 {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         for ($i = 1; $i < 11; $i++) {
36 36
             $filemanager = new Intraface_modules_filemanager_FileManager($this->createKernel());
37
-            copy(dirname(__FILE__) . '/'.$this->file_name, PATH_UPLOAD.$this->file_name);
37
+            copy(dirname(__FILE__).'/'.$this->file_name, PATH_UPLOAD.$this->file_name);
38 38
             $filemanager->save(PATH_UPLOAD.$this->file_name, 'file'.$i.'.jpg');
39 39
             $appender = $filemanager->getKeywordAppender();
40 40
 
Please login to merge, or discard this patch.
tests/unit/Email/EmailTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     function testALotOfSaveEmails()
79 79
     {
80 80
         $number = 200;
81
-        for ($i = 0; $i<$number; $i++) {
81
+        for ($i = 0; $i < $number; $i++) {
82 82
             $belong_to_id = rand(1, 100000);
83 83
             $type_id = rand(1, 5);
84 84
             $contact_id = rand(1, 100000);
Please login to merge, or discard this patch.
tests/unit/Contact/ContactReminderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
     function testPostPhoneUntil()
27 27
     {
28 28
         $reminder = new ContactReminder($this->getContact());
29
-        $this->assertTrue($reminder->postponeUntil(date('Y-') . date('m') + 1 . date('-d')));
29
+        $this->assertTrue($reminder->postponeUntil(date('Y-').date('m') + 1.date('-d')));
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
tests/unit/Contact/PdfLabelTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
 
48 48
         // file_put_contents(TEST_PATH_TEMP.'pdf_label.pdf', $pdf->output());
49 49
 
50
-        $this->assertEquals(strlen(file_get_contents(dirname(__FILE__) .'/expected/pdf_label.pdf', 1)), strlen($pdf->output()));
50
+        $this->assertEquals(strlen(file_get_contents(dirname(__FILE__).'/expected/pdf_label.pdf', 1)), strlen($pdf->output()));
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
tests/unit/Procurement/ProcurementTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
         $expected = array(
148 148
             0 => array(
149 149
                 'id' => 1,
150
-                'date_dk' => '05-01-' . date('Y'),
151
-                'date' => date('Y') . '-01-05',
150
+                'date_dk' => '05-01-'.date('Y'),
151
+                'date' => date('Y').'-01-05',
152 152
                 'text' => 'procurement# 1: test - købsmoms',
153 153
                 'debet' => '25.00',
154 154
                 'credit' => '0.00',
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
             ),
163 163
             1 => array(
164 164
                 'id' => 2,
165
-                'date_dk' => '05-01-' . date('Y'),
166
-                'date' => date('Y') . '-01-05',
165
+                'date_dk' => '05-01-'.date('Y'),
166
+                'date' => date('Y').'-01-05',
167 167
                 'text' => 'procurement# 1: test',
168 168
                 'debet' => '100.00',
169 169
                 'credit' => '0.00',
@@ -177,8 +177,8 @@  discard block
 block discarded – undo
177 177
             ),
178 178
             2 => array(
179 179
                 'id' => 3,
180
-                'date_dk' => '05-01-' . date('Y'),
181
-                'date' => date('Y') . '-01-05',
180
+                'date_dk' => '05-01-'.date('Y'),
181
+                'date' => date('Y').'-01-05',
182 182
                 'text' => 'procurement# 1: test',
183 183
                 'debet' => '0.00',
184 184
                 'credit' => '125.00',
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
             ),
193 193
             3 => array(
194 194
                 'id' => 4,
195
-                'date_dk' => '05-01-' . date('Y'),
196
-                'date' => date('Y') . '-01-05',
195
+                'date_dk' => '05-01-'.date('Y'),
196
+                'date' => date('Y').'-01-05',
197 197
                 'text' => 'procurement# 1: test - shipment_etc',
198 198
                 'debet' => '40.00',
199 199
                 'credit' => '0.00',
@@ -207,8 +207,8 @@  discard block
 block discarded – undo
207 207
             ),
208 208
             4 => array(
209 209
                 'id' => 5,
210
-                'date_dk' => '05-01-' . date('Y'),
211
-                'date' => date('Y') . '-01-05',
210
+                'date_dk' => '05-01-'.date('Y'),
211
+                'date' => date('Y').'-01-05',
212 212
                 'text' => 'procurement# 1: test - shipment_etc',
213 213
                 'debet' => '0.00',
214 214
                 'credit' => '40.00',
Please login to merge, or discard this patch.
tests/unit/Auth/PrivateKeyLoginTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 
9 9
     function setUp()
10 10
     {
11
-        $private_key = md5('private' . date('d-m-Y H:i:s') . 'test');
11
+        $private_key = md5('private'.date('d-m-Y H:i:s').'test');
12 12
 
13 13
         $this->db = MDB2::singleton(DB_DSN);
14 14
         $this->db->exec('TRUNCATE intranet');
15
-        $this->db->exec('INSERT INTO intranet SET private_key = ' . $this->db->quote($private_key, 'text'));
15
+        $this->db->exec('INSERT INTO intranet SET private_key = '.$this->db->quote($private_key, 'text'));
16 16
 
17 17
         $this->adapter = new Intraface_Auth_PrivateKeyLogin($this->db, self::SESSION_LOGIN, $private_key);
18 18
     }
Please login to merge, or discard this patch.
tests/unit/Auth/UserLoginTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     {
9 9
         $db = MDB2::singleton(DB_DSN);
10 10
         $db->exec('TRUNCATE user');
11
-        $db->exec('INSERT INTO user SET email = ' . $db->quote('[email protected]', 'text') . ', password = ' . $db->quote(md5('startup'), 'text'));
11
+        $db->exec('INSERT INTO user SET email = '.$db->quote('[email protected]', 'text').', password = '.$db->quote(md5('startup'), 'text'));
12 12
 
13 13
         $this->adapter = new Intraface_Auth_User($db, self::SESSION_LOGIN, '[email protected]', 'startup');
14 14
     }
Please login to merge, or discard this patch.