@@ 82-94 (lines=13) @@ | ||
79 | /** |
|
80 | * @test |
|
81 | */ |
|
82 | public function shouldFailIfServiceIsMissing() |
|
83 | { |
|
84 | $this->expectException(InvalidArgumentException::class); |
|
85 | ||
86 | $controller = new GenericServiceInvokeController( |
|
87 | $this->controllerHelper, |
|
88 | $this->argumentCompiler, |
|
89 | $this->container, |
|
90 | [ |
|
91 | 'method' => 'doFoo' |
|
92 | ] |
|
93 | ); |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * @test |
|
@@ 99-111 (lines=13) @@ | ||
96 | /** |
|
97 | * @test |
|
98 | */ |
|
99 | public function shouldFailIfMethodIsMissing() |
|
100 | { |
|
101 | $this->expectException(InvalidArgumentException::class); |
|
102 | ||
103 | $controller = new GenericServiceInvokeController( |
|
104 | $this->controllerHelper, |
|
105 | $this->argumentCompiler, |
|
106 | $this->container, |
|
107 | [ |
|
108 | 'service' => 'some_service', |
|
109 | ] |
|
110 | ); |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * @test |