|
11 | 11 | use RonasIT\AutoDoc\Exceptions\UnsupportedDocumentationViewerException; |
12 | 12 | use RonasIT\AutoDoc\Exceptions\WrongSecurityConfigException; |
13 | 13 | use RonasIT\AutoDoc\Services\SwaggerService; |
14 | | -use RonasIT\AutoDoc\Tests\Support\Mock\InvokableTestController; |
15 | 14 | use RonasIT\AutoDoc\Tests\Support\Mock\TestContract; |
16 | 15 | use RonasIT\AutoDoc\Tests\Support\Mock\TestNotificationSetting; |
17 | 16 | use RonasIT\AutoDoc\Tests\Support\Mock\TestRequest; |
18 | | -use RonasIT\AutoDoc\Tests\Support\Mock\TestRequestContract; |
19 | 17 | use RonasIT\AutoDoc\Tests\Support\Traits\SwaggerServiceMockTrait; |
20 | 18 | use stdClass; |
21 | 19 |
|
@@ -684,22 +682,22 @@ public function testAddDataWithNotExistsMethodOnController() |
684 | 682 | $service->addData($request, $response); |
685 | 683 | } |
686 | 684 |
|
687 | | - public static function addDataWithBindingInterface(): array |
| 685 | + public static function getImplementations(): array |
688 | 686 | { |
689 | 687 | return [ |
690 | 688 | [ |
691 | | - 'concrete' => TestRequest::class, |
| 689 | + 'implementation' => TestRequest::class, |
692 | 690 | ], |
693 | 691 | [ |
694 | | - 'concrete' => fn ($app) => new TestRequest(), |
| 692 | + 'implementation' => fn ($app) => new TestRequest(), |
695 | 693 | ], |
696 | 694 | ]; |
697 | 695 | } |
698 | 696 |
|
699 | | - #[DataProvider('addDataWithBindingInterface')] |
700 | | - public function testAddDataWithBindingInterface($concrete) |
| 697 | + #[DataProvider('getImplementations')] |
| 698 | + public function testAddDataWithBindingInterface($implementation) |
701 | 699 | { |
702 | | - $this->app->bind(TestContract::class, $concrete); |
| 700 | + $this->app->bind(TestContract::class, $implementation); |
703 | 701 |
|
704 | 702 | $this->mockDriverGetEmptyAndSaveProcessTmpData($this->getJsonFixture('tmp_data_get_user_request')); |
705 | 703 |
|
|
0 commit comments