Skip to content

Commit c567892

Browse files
committed
Fix failing test
1 parent 3720768 commit c567892

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unit/RestActionGeneratorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ public function dataProviderWithNamingMap():array
475475
'params' => [],
476476
'modelName' => 'Post',
477477
'modelFqn' => 'app\models\Post',
478+
'xRoute' => null,
478479
'responseWrapper' => ['item' => '', 'list' => '', 'type' => 'array'],
479480
]),
480481
new RestAction([
@@ -487,6 +488,7 @@ public function dataProviderWithNamingMap():array
487488
'params' => ['id' => ['type' => 'integer']],
488489
'modelName' => 'Post',
489490
'modelFqn' => 'app\models\Post',
491+
'xRoute' => null,
490492
'responseWrapper' => ['item' => 'post', 'list' => null, 'type' => 'object'],
491493
]),
492494
new RestAction([
@@ -501,6 +503,7 @@ public function dataProviderWithNamingMap():array
501503
],
502504
'modelName' => 'Post',
503505
'modelFqn' => 'app\models\Post',
506+
'xRoute' => null,
504507
'responseWrapper' => ['item' => 'category', 'list' => null, 'type' => 'object'],
505508
]),
506509
new RestAction([
@@ -515,6 +518,7 @@ public function dataProviderWithNamingMap():array
515518
],
516519
'modelName' => 'Post',
517520
'modelFqn' => 'app\models\Post',
521+
'xRoute' => null,
518522
'responseWrapper' => ['item' => '', 'list' => '', 'type' => 'array'],
519523
]),
520524
new RestAction([
@@ -529,6 +533,7 @@ public function dataProviderWithNamingMap():array
529533
],
530534
'modelName' => 'Comment',
531535
'modelFqn' => 'app\models\Comment',
536+
'xRoute' => null,
532537
'responseWrapper' => ['item' => '', 'list' => '', 'type' => 'array'],
533538
]),
534539
new RestAction([
@@ -543,6 +548,7 @@ public function dataProviderWithNamingMap():array
543548
],
544549
'modelName' => 'Comment',
545550
'modelFqn' => 'app\models\Comment',
551+
'xRoute' => null,
546552
'responseWrapper' => null,
547553
]),
548554
new RestAction([
@@ -558,6 +564,7 @@ public function dataProviderWithNamingMap():array
558564
],
559565
'modelName' => 'Post',
560566
'modelFqn' => 'app\models\Post',
567+
'xRoute' => null,
561568
'responseWrapper' => ['item' => '', 'list' => '', 'type' => 'object'],
562569
]),
563570
new RestAction([
@@ -573,6 +580,7 @@ public function dataProviderWithNamingMap():array
573580
],
574581
'modelName' => 'Comment',
575582
'modelFqn' => 'app\models\Comment',
583+
'xRoute' => null,
576584
'responseWrapper' => ['item' => '', 'list' => '', 'type' => 'object'],
577585
]),
578586
new RestAction([
@@ -588,6 +596,7 @@ public function dataProviderWithNamingMap():array
588596
],
589597
'modelName' => 'Comment',
590598
'modelFqn' => 'app\models\Comment',
599+
'xRoute' => null,
591600
'responseWrapper' => null,
592601
]),
593602
new RestAction([
@@ -603,6 +612,7 @@ public function dataProviderWithNamingMap():array
603612
],
604613
'modelName' => 'Comment',
605614
'modelFqn' => 'app\models\Comment',
615+
'xRoute' => null,
606616
'responseWrapper' => ['item' => '', 'list' => '', 'type' => 'object'],
607617
]),
608618
],

0 commit comments

Comments
 (0)