GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( d9a634...e591c7 )
by Juan Jose
07:17 queued 16s
created
UnitTestFiles/Test/OptimizationProblemUntTests.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
     public static function setUpBeforeClass()
29 29
     {
30
-        if (Constants::API_KEY == Constants::DEMO_API_KEY) {
31
-            $className = str_replace('UnitTestFiles\\Test\\','',get_class());
32
-            self::markTestSkipped( 'PHPUnit will skip '. $className ." class - it impossible run with demo API key" );
30
+        if (Constants::API_KEY==Constants::DEMO_API_KEY) {
31
+            $className = str_replace('UnitTestFiles\\Test\\', '', get_class());
32
+            self::markTestSkipped('PHPUnit will skip '.$className." class - it impossible run with demo API key");
33 33
         }
34 34
 
35 35
         Route4Me::setApiKey(Constants::API_KEY);
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
         $this->assertNotNull($result);
265 265
         $this->assertTrue($result instanceof OptimizationProblem);
266
-        $this->assertTrue(sizeof($result->addresses)==$initialAddresses+2);
266
+        $this->assertTrue(sizeof($result->addresses)==$initialAddresses + 2);
267 267
     }
268 268
 
269 269
     public function testGetRandomOptimizationId()
Please login to merge, or discard this patch.
UnitTestFiles/Test/RouteExampleTests.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
 
37 37
     public static function setUpBeforeClass()
38 38
     {
39
-        if (Constants::API_KEY == Constants::DEMO_API_KEY) {
40
-            $className = str_replace('UnitTestFiles\\Test\\','',get_class());
41
-            self::markTestSkipped( 'PHPUnit will skip '. $className ." class - it impossible run with demo API key" );
39
+        if (Constants::API_KEY==Constants::DEMO_API_KEY) {
40
+            $className = str_replace('UnitTestFiles\\Test\\', '', get_class());
41
+            self::markTestSkipped('PHPUnit will skip '.$className." class - it impossible run with demo API key");
42 42
         }
43 43
 
44 44
         Route4Me::setApiKey(Constants::API_KEY);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     public function testGetScheduleCalendar()
189 189
     {
190
-        $now            = new \DateTime();
190
+        $now = new \DateTime();
191 191
 
192 192
         $schedCalendarParams = new ScheduleCalendarParameters();
193 193
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         $this->assertTrue(isset($result['status']), "Cannot merge the routes");
242 242
         $this->assertTrue($result['status'], "Cannot merge the routes");
243 243
         $this->assertTrue(isset($result['optimization_problem_id']), "Cannot merge the routes");
244
-        $this->assertEquals(32,strlen($result['optimization_problem_id']), "Cannot merge the routes");
244
+        $this->assertEquals(32, strlen($result['optimization_problem_id']), "Cannot merge the routes");
245 245
 
246 246
         self::$removedOptimizationIDs[] = $result['optimization_problem_id'];
247 247
     }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 
287 287
         self::$createdProblems[] = $problems;
288 288
 
289
-        $routes=$problems->getRoutes();
289
+        $routes = $problems->getRoutes();
290 290
         $this->assertTrue(sizeof($routes)==2, "The generated optimization hasn't two routes");
291 291
 
292 292
         $totalTripDistanceByDuration = $routes[0]->trip_distance + $routes[1]->trip_distance;
@@ -325,9 +325,9 @@  discard block
 block discarded – undo
325 325
         $problems = OptimizationProblem::optimize($optimizationParams);
326 326
         $this->assertTrue(!is_null($problems), "Cannot generate an optimization with the distance priority fine-tuning");
327 327
 
328
-        self::$createdProblems[]=$problems;
328
+        self::$createdProblems[] = $problems;
329 329
 
330
-        $routes=$problems->getRoutes();
330
+        $routes = $problems->getRoutes();
331 331
         $this->assertTrue(sizeof($routes)==2, "The generated optimization hasn't two routes");
332 332
 
333 333
         $totalTripDistanceByDistance = $routes[0]->trip_distance + $routes[1]->trip_distance;
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             'device_type'               => DeviceType::WEB,
356 356
             'optimize'                  => OptimizationType::TIME,
357 357
             'metric'                    => Metric::MATRIX,
358
-            'route_max_duration'        => 86400 ,
358
+            'route_max_duration'        => 86400,
359 359
             'travel_mode'               => TravelMode::DRIVING,
360 360
             'vehicle_capacity'          => 50,
361 361
             'vehicle_max_distance_mi'   => 10000,
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
         $this->assertNotNull($problem->addresses);
627 627
 
628 628
         $firstAddress = $problem->routes[0]->addresses[0];
629
-        $lastAddress = $problem->routes[0]->addresses[sizeof($problem->routes[0]->addresses)-1];
629
+        $lastAddress = $problem->routes[0]->addresses[sizeof($problem->routes[0]->addresses) - 1];
630 630
 
631 631
         $this->assertEquals($firstAddress->route_destination_id, $lastAddress->route_destination_id);
632 632
     }
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
             }
819 819
 
820 820
             if (sizeof(self::$removedOptimizationIDs)>0) {
821
-                $optimizationProblemIDs = array_merge($optimizationProblemIDs,self::$removedOptimizationIDs);
821
+                $optimizationProblemIDs = array_merge($optimizationProblemIDs, self::$removedOptimizationIDs);
822 822
             }
823 823
 
824 824
             $params = [
Please login to merge, or discard this patch.
UnitTestFiles/Test/RouteTests.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         $users = $member->getUsers();
181 181
 
182 182
         assert(!is_null($users), 'Cannot retrieve list of the users');
183
-        assert(2 == sizeof($users), 'Cannot retrieve list of the users');
183
+        assert(2==sizeof($users), 'Cannot retrieve list of the users');
184 184
         assert(isset($users['results']), 'Cannot retrieve list of the users');
185 185
         assert(isset($users['total']), 'Cannot retrieve list of the users');
186 186
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $route->update();
212 212
 
213 213
         $this->assertNotNull($route);
214
-        $this->assertInstanceOf(Route::class,$route);
214
+        $this->assertInstanceOf(Route::class, $route);
215 215
 
216 216
         //endregion
217 217
 
@@ -219,10 +219,10 @@  discard block
 block discarded – undo
219 219
 
220 220
         $route = new Route();
221 221
 
222
-        $assignedRoute= $route->getRoutes(['route_id' => $routeId]);
222
+        $assignedRoute = $route->getRoutes(['route_id' => $routeId]);
223 223
 
224 224
         $this->assertNotNull($assignedRoute);
225
-        $this->assertInstanceOf(Route::class,$assignedRoute);
225
+        $this->assertInstanceOf(Route::class, $assignedRoute);
226 226
         $this->assertEquals($randomUserID, $assignedRoute->parameters->member_id);
227 227
 
228 228
         //endregion
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
             $removedVehicleIDs[] = $result['vehicle_id'];
277 277
         }
278 278
 
279
-        $randomIndex = rand(0, sizeof($response)-1);
279
+        $randomIndex = rand(0, sizeof($response) - 1);
280 280
         $vehicleId = $response[$randomIndex]['vehicle_id'];
281 281
 
282 282
         //endregion
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
         $route->update();
303 303
 
304 304
         $this->assertNotNull($route);
305
-        $this->assertInstanceOf(Route::class,$route);
305
+        $this->assertInstanceOf(Route::class, $route);
306 306
 
307 307
         //endregion
308 308
 
@@ -310,10 +310,10 @@  discard block
 block discarded – undo
310 310
 
311 311
         $route = new Route();
312 312
 
313
-        $assignedRoute= $route->getRoutes(['route_id' => $routeId]);
313
+        $assignedRoute = $route->getRoutes(['route_id' => $routeId]);
314 314
 
315 315
         $this->assertNotNull($assignedRoute);
316
-        $this->assertInstanceOf(Route::class,$assignedRoute);
316
+        $this->assertInstanceOf(Route::class, $assignedRoute);
317 317
         $this->assertEquals($vehicleId, $assignedRoute->parameters->vehicle_id);
318 318
 
319 319
         //endregion
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         $params->route_id           = $route_id;
377 377
         $params->route_path_output  = 'Points';
378 378
 
379
-        $routeResult = (array) $route->getRoutePoints($params->toArray());
379
+        $routeResult = (array)$route->getRoutePoints($params->toArray());
380 380
 
381 381
         $this->assertNotNull($routeResult);
382 382
         $this->assertTrue(is_array($routeResult));
@@ -449,8 +449,8 @@  discard block
 block discarded – undo
449 449
         foreach ($routeResults as $routeResult) {
450 450
 
451 451
             $this->assertTrue(
452
-                $routeResult->parameters->route_date - $tz >= $startDateUnix &&
453
-                $routeResult->parameters->route_date - $tz <= $endtDateUnix
452
+                $routeResult->parameters->route_date - $tz>=$startDateUnix &&
453
+                $routeResult->parameters->route_date - $tz<=$endtDateUnix
454 454
             );
455 455
         }
456 456
     }
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
 
501 501
         foreach (self::$testRoutes as $route1) {
502 502
             if (isset($route1->destination_count)) {
503
-                if ($route1->destination_count > 4) {
503
+                if ($route1->destination_count>4) {
504 504
                     $selectedRoute = $route->getRoutes(['route_id' => $route1->route_id]);
505 505
                     break;
506 506
                 }
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
         $this->assertInstanceOf(Route::class, Route::fromArray($result));
657 657
         $this->assertNull($result['optimization_problem_id']);
658 658
 
659
-        $removedRouteIDs[]= $result['route_id'];
659
+        $removedRouteIDs[] = $result['route_id'];
660 660
     }
661 661
 
662 662
     public function testUpdateRouteAvoidanceZone()
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
             }
774 774
 
775 775
             if (sizeof(self::$removedOptimizationIDs)>0) {
776
-                $optimizationProblemIDs = array_merge($optimizationProblemIDs,self::$removedOptimizationIDs);
776
+                $optimizationProblemIDs = array_merge($optimizationProblemIDs, self::$removedOptimizationIDs);
777 777
             }
778 778
 
779 779
             $params = [
Please login to merge, or discard this patch.
UnitTestFiles/Test/TerritoryTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $this->assertInstanceOf(Territory::class, Territory::fromArray($response[0]));
120 120
     }
121 121
 
122
-    public function testGetTerritory(){
122
+    public function testGetTerritory() {
123 123
         $territory = new Territory();
124 124
 
125 125
         $params = [
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $this->assertTrue(is_array($response));
133 133
         $this->assertInstanceOf(Territory::class, Territory::fromArray($response));
134 134
         $this->assertTrue(isset($response['territory_id']));
135
-        $this->assertEquals(self::$createdTerritories[0],$response['territory_id']);
135
+        $this->assertEquals(self::$createdTerritories[0], $response['territory_id']);
136 136
     }
137 137
 
138 138
     public function testCreateCircleTerritory()
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     {
282 282
         $territory = new Territory();
283 283
 
284
-        $territoryId = self::$createdTerritories[sizeof(self::$createdTerritories)-1];
284
+        $territoryId = self::$createdTerritories[sizeof(self::$createdTerritories) - 1];
285 285
 
286 286
         $response = $territory->deleteTerritory($territoryId);
287 287
 
Please login to merge, or discard this patch.
UnitTestFiles/Test/AddressNoteUnitTests.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
     public static function setUpBeforeClass()
39 39
     {
40
-        if (Constants::API_KEY == Constants::DEMO_API_KEY) {
41
-            $className = str_replace('UnitTestFiles\\Test\\','',get_class());
42
-            self::markTestSkipped( 'PHPUnit will skip '. $className ." class - it impossible run with demo API key" );
40
+        if (Constants::API_KEY==Constants::DEMO_API_KEY) {
41
+            $className = str_replace('UnitTestFiles\\Test\\', '', get_class());
42
+            self::markTestSkipped('PHPUnit will skip '.$className." class - it impossible run with demo API key");
43 43
         }
44 44
 
45 45
         Route4Me::setApiKey(Constants::API_KEY);
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
         $customNoteTypes = $addressNote->getAllCustomNoteTypes();
136 136
 
137 137
         foreach ($customNoteTypes as $custNote) {
138
-            if ($custNote['note_custom_type'] == 'Unit Test To Do') {
139
-                self::$createdCustomNotes[]='Unit Test To Do';
138
+            if ($custNote['note_custom_type']=='Unit Test To Do') {
139
+                self::$createdCustomNotes[] = 'Unit Test To Do';
140 140
             }
141 141
         }
142 142
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                 && $customNoteTypeResult['affected']!=null
159 159
                 && $customNoteTypeResult['affected']==1
160 160
             ) {
161
-                self::$createdCustomNotes[]='Unit Test To Do';
161
+                self::$createdCustomNotes[] = 'Unit Test To Do';
162 162
             }
163 163
         }
164 164
     }
@@ -214,10 +214,10 @@  discard block
 block discarded – undo
214 214
         );
215 215
 
216 216
         $this->assertNotNull($addressWithNotes);
217
-        $this->assertTrue(sizeof( $addressWithNotes->notes)>0);
217
+        $this->assertTrue(sizeof($addressWithNotes->notes)>0);
218 218
         $this->assertContainsOnlyInstancesOf(AddressNote::class, [$firstNote]);
219 219
         $this->assertEquals('Test Address Note', $firstNote->contents);
220
-        $this->assertEquals('dropoff',$firstNote->activity_type);
220
+        $this->assertEquals('dropoff', $firstNote->activity_type);
221 221
     }
222 222
 
223 223
     public function testAddAddressNote()
@@ -296,14 +296,14 @@  discard block
 block discarded – undo
296 296
 
297 297
         $customNoteType = $addressNote->getCustomNoteTypeByKey(self::$createdCustomNotes[0]);
298 298
 
299
-        $this->assertEquals(self::$createdCustomNotes[0],$customNoteType['note_custom_type']);
299
+        $this->assertEquals(self::$createdCustomNotes[0], $customNoteType['note_custom_type']);
300 300
     }
301 301
 
302 302
     public function testGetAllCustomNoteTypes()
303 303
     {
304 304
         $addressNote = new AddressNote();
305 305
 
306
-        $customNoteTypes =  $addressNote->getAllCustomNoteTypes();
306
+        $customNoteTypes = $addressNote->getAllCustomNoteTypes();
307 307
 
308 308
         $firstCustomNoteType = CustomNoteTypeResponse::fromArray($customNoteTypes[0]);
309 309
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         $customNote = CustomNoteType::fromArray($note->custom_types[0]);
371 371
 
372 372
         $this->assertContainsOnlyInstancesOf(CustomNoteType::class, [$customNote]);
373
-        $this->assertEquals('Pickup package',$customNote->note_custom_value);
373
+        $this->assertEquals('Pickup package', $customNote->note_custom_value);
374 374
     }
375 375
 
376 376
     public function testRemoveCustomNoteType()
Please login to merge, or discard this patch.
UnitTestFiles/Test/ActivityParametersUntTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 
20 20
     public static function setUpBeforeClass()
21 21
     {
22
-        if (Constants::API_KEY == Constants::DEMO_API_KEY) {
23
-            $className = str_replace('UnitTestFiles\\Test\\','',get_class());
24
-            self::markTestSkipped( 'PHPUnit will skip '. $className ." class - it impossible run with demo API key" );
22
+        if (Constants::API_KEY==Constants::DEMO_API_KEY) {
23
+            $className = str_replace('UnitTestFiles\\Test\\', '', get_class());
24
+            self::markTestSkipped('PHPUnit will skip '.$className." class - it impossible run with demo API key");
25 25
         }
26 26
 
27 27
         Route4Me::setApiKey(Constants::API_KEY);
Please login to merge, or discard this patch.
UnitTestFiles/Test/V5/RouteTests.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
         $result = $route->duplicateRoute($routeIDs);
303 303
 
304 304
         $this->assertNotNull($result);
305
-        $this->assertInstanceOf(RouteDuplicateResponse::class, RouteDuplicateResponse::fromArray( $result));
305
+        $this->assertInstanceOf(RouteDuplicateResponse::class, RouteDuplicateResponse::fromArray($result));
306 306
         $this->assertTrue($result['status']);
307 307
     }
308 308
 
@@ -313,9 +313,9 @@  discard block
 block discarded – undo
313 313
         $result = $route->getRouteDataTableConfig();
314 314
 
315 315
         $this->assertNotNull($result);
316
-        $this->assertInstanceOf(  RouteDataTableConfigResponse::class, RouteDataTableConfigResponse::fromArray( $result));
317
-        $this->assertInstanceOf(  ApiCapabilities::class, ApiCapabilities::fromArray( $result['api_capabilities']));
318
-        $this->assertInstanceOf(  ApiPreferences::class, ApiPreferences::fromArray( $result['api_preferences']));
316
+        $this->assertInstanceOf(RouteDataTableConfigResponse::class, RouteDataTableConfigResponse::fromArray($result));
317
+        $this->assertInstanceOf(ApiCapabilities::class, ApiCapabilities::fromArray($result['api_capabilities']));
318
+        $this->assertInstanceOf(ApiPreferences::class, ApiPreferences::fromArray($result['api_preferences']));
319 319
     }
320 320
 
321 321
     public function testRouteDataTableFallbackConfig()
@@ -325,14 +325,14 @@  discard block
 block discarded – undo
325 325
         $result = $route->getRouteDataTableFallbackConfig();
326 326
 
327 327
         $this->assertNotNull($result);
328
-        $this->assertInstanceOf(  RouteDataTableConfigResponse::class, RouteDataTableConfigResponse::fromArray( $result));
329
-        $this->assertInstanceOf(  ApiCapabilities::class, ApiCapabilities::fromArray( $result['api_capabilities']));
330
-        $this->assertInstanceOf(  ApiPreferences::class, ApiPreferences::fromArray( $result['api_preferences']));
328
+        $this->assertInstanceOf(RouteDataTableConfigResponse::class, RouteDataTableConfigResponse::fromArray($result));
329
+        $this->assertInstanceOf(ApiCapabilities::class, ApiCapabilities::fromArray($result['api_capabilities']));
330
+        $this->assertInstanceOf(ApiPreferences::class, ApiPreferences::fromArray($result['api_preferences']));
331 331
     }
332 332
 
333 333
     public function testUpdateRouteParameters()
334 334
     {
335
-        $routeQueryParams= new RouteParametersQuery();
335
+        $routeQueryParams = new RouteParametersQuery();
336 336
         $routeQueryParams->route_id = self::$testRoutes[sizeof(self::$testRoutes) - 1]->route_id;
337 337
         $routeQueryParams->original = 0;
338 338
 
@@ -349,21 +349,21 @@  discard block
 block discarded – undo
349 349
         $result = $route->updateRouteParameters($routeQueryParams->toArray(), $routeParams->toArray());
350 350
 
351 351
         $this->assertNotNull($result);
352
-        $this->assertInstanceOf(  Route::class, Route::fromArray( $result));
352
+        $this->assertInstanceOf(Route::class, Route::fromArray($result));
353 353
     }
354 354
 
355 355
     public function  testDeleteRoutes()
356 356
     {
357 357
         $routeToDeleteID = self::$testRoutes[sizeof(self::$testRoutes) - 1]->route_id;
358 358
 
359
-        $routeIDs = [ $routeToDeleteID ];
359
+        $routeIDs = [$routeToDeleteID];
360 360
 
361 361
         $route = new Route();
362 362
 
363 363
         $result = $route->deleteRoutes($routeIDs);
364 364
 
365 365
         $this->assertNotNull($result);
366
-        $this->assertInstanceOf(RoutesDeleteResponse::class, RoutesDeleteResponse::fromArray( $result));
366
+        $this->assertInstanceOf(RoutesDeleteResponse::class, RoutesDeleteResponse::fromArray($result));
367 367
         $this->assertTrue($result['deleted']);
368 368
 
369 369
         self::$testRoutes = array_pop(self::$testRoutes);
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
             }
382 382
 
383 383
             if (sizeof(self::$removedOptimizationIDs)>0) {
384
-                $optimizationProblemIDs = array_merge($optimizationProblemIDs,self::$removedOptimizationIDs);
384
+                $optimizationProblemIDs = array_merge($optimizationProblemIDs, self::$removedOptimizationIDs);
385 385
             }
386 386
 
387 387
             $params = [
Please login to merge, or discard this patch.
UnitTestFiles/Test/AvoidanceZoneUnitTests.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $this->assertNotNull($avoidanceZones);
110 110
         $this->assertTrue(is_array($avoidanceZones));
111
-        $first=AvoidanceZone::fromArray($avoidanceZones[0]);
111
+        $first = AvoidanceZone::fromArray($avoidanceZones[0]);
112 112
         $this->assertContainsOnlyInstancesOf('Route4Me\AvoidanceZone', [$first]);
113 113
     }
114 114
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
     public function testDeleteAvoidanceZone()
161 161
     {
162
-        $territoryId = $this->createdAvoidanceZones[sizeof($this->createdAvoidanceZones)-1]->territory_id;
162
+        $territoryId = $this->createdAvoidanceZones[sizeof($this->createdAvoidanceZones) - 1]->territory_id;
163 163
         $result = $this->avoidanceZone->deleteAvoidanceZone($territoryId);
164 164
         //$result = AvoidanceZone::deleteAvoidanceZone($territoryId);
165 165
 
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
 
186 186
         $this->assertNotNull($updatedRoute);
187 187
         $this->assertContainsOnlyInstancesOf('Route4Me\AvoidanceZone', [$updatedRoute]);
188
-        $this->assertEquals('Test Territory Updated',$updatedRoute->territory_name, "The territory name not updated");
189
-        $this->assertEquals('ff5500',$updatedRoute->territory_color, "The territory color not updated");
188
+        $this->assertEquals('Test Territory Updated', $updatedRoute->territory_name, "The territory name not updated");
189
+        $this->assertEquals('ff5500', $updatedRoute->territory_color, "The territory color not updated");
190 190
     }
191 191
 
192 192
     public function tearDown()
Please login to merge, or discard this patch.
UnitTestFiles/Test/VehicleTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 class VehicleTests extends \PHPUnit\Framework\TestCase
14 14
 {
15
-    public static $createdVehicles=[];
15
+    public static $createdVehicles = [];
16 16
 
17 17
     public static function setUpBeforeClass()
18 18
     {
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
             VehicleCreateResponseV4::fromArray($response)
314 314
         );
315 315
 
316
-        $result =  VehicleCreateResponseV4::fromArray($response);
316
+        $result = VehicleCreateResponseV4::fromArray($response);
317 317
 
318 318
         $this->assertEquals('ISUZU FTR', $result->vehicle_alias);
319 319
         $this->assertEquals('1NP5DB9X93N507873', $result->vehicle_vin);
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             VehicleCreateResponseV4::fromArray($response)
397 397
         );
398 398
 
399
-        $result =  VehicleCreateResponseV4::fromArray($response);
399
+        $result = VehicleCreateResponseV4::fromArray($response);
400 400
 
401 401
         $this->assertEquals('Peterbilt 579', $result->vehicle_alias);
402 402
         $this->assertEquals('1NP5DB9X93N507873', $result->vehicle_vin);
Please login to merge, or discard this patch.