@@ -158,7 +158,7 @@ public function testCompileNonJsonCompilerResponse() {
158
158
// Override previous controller mock. More class member functions need to get mocked.
159
159
$ controller = $ this ->getMockBuilder ('Codebender\BuilderBundle\Controller\DefaultController ' )
160
160
->disableOriginalConstructor ()
161
- ->setMethods (['get ' , 'getRequest ' , 'checkForUserIdProjectId ' , 'returnProvidedAndFetchedLibraries ' ])
161
+ ->setMethods (['get ' , 'getRequest ' , 'addUserIdProjectIdIfNotInRequest ' , 'returnProvidedAndFetchedLibraries ' ])
162
162
->getMock ();
163
163
164
164
$ controller ->setContainer ($ container );
@@ -170,7 +170,7 @@ public function testCompileNonJsonCompilerResponse() {
170
170
171
171
$ controller ->expects ($ this ->at (0 ))->method ('get ' )->with ('codebender_builder.handler ' )
172
172
->willReturn ($ apiHandler );
173
- $ controller ->expects ($ this ->at (1 ))->method ('checkForUserIdProjectId ' )->with (['files ' => []])
173
+ $ controller ->expects ($ this ->at (1 ))->method ('addUserIdProjectIdIfNotInRequest ' )->with (['files ' => []])
174
174
->willReturn (['files ' => []]);
175
175
$ controller ->expects ($ this ->at (2 ))->method ('returnProvidedAndFetchedLibraries ' )->with ([])
176
176
->willReturn (['libraries ' => []]);
@@ -191,7 +191,7 @@ public function testCompileFalseCompilationWithoutStepIncluded() {
191
191
// Override previous controller mock. More class member functions need to get mocked.
192
192
$ controller = $ this ->getMockBuilder ('Codebender\BuilderBundle\Controller\DefaultController ' )
193
193
->disableOriginalConstructor ()
194
- ->setMethods (['get ' , 'getRequest ' , 'checkForUserIdProjectId ' , 'returnProvidedAndFetchedLibraries ' ])
194
+ ->setMethods (['get ' , 'getRequest ' , 'addUserIdProjectIdIfNotInRequest ' , 'returnProvidedAndFetchedLibraries ' ])
195
195
->getMock ();
196
196
197
197
$ controller ->setContainer ($ container );
@@ -203,7 +203,7 @@ public function testCompileFalseCompilationWithoutStepIncluded() {
203
203
204
204
$ controller ->expects ($ this ->at (0 ))->method ('get ' )->with ('codebender_builder.handler ' )
205
205
->willReturn ($ apiHandler );
206
- $ controller ->expects ($ this ->at (1 ))->method ('checkForUserIdProjectId ' )->with (['files ' => []])
206
+ $ controller ->expects ($ this ->at (1 ))->method ('addUserIdProjectIdIfNotInRequest ' )->with (['files ' => []])
207
207
->willReturn (['files ' => []]);
208
208
$ controller ->expects ($ this ->at (2 ))->method ('returnProvidedAndFetchedLibraries ' )->with ([])
209
209
->willReturn (['libraries ' => []]);
@@ -228,7 +228,7 @@ public function testCompileFalseCompilationWithStepIncluded() {
228
228
// Override previous controller mock. More class member functions need to get mocked.
229
229
$ controller = $ this ->getMockBuilder ('Codebender\BuilderBundle\Controller\DefaultController ' )
230
230
->disableOriginalConstructor ()
231
- ->setMethods (['get ' , 'getRequest ' , 'checkForUserIdProjectId ' , 'returnProvidedAndFetchedLibraries ' ])
231
+ ->setMethods (['get ' , 'getRequest ' , 'addUserIdProjectIdIfNotInRequest ' , 'returnProvidedAndFetchedLibraries ' ])
232
232
->getMock ();
233
233
234
234
$ controller ->setContainer ($ container );
@@ -240,7 +240,7 @@ public function testCompileFalseCompilationWithStepIncluded() {
240
240
241
241
$ controller ->expects ($ this ->at (0 ))->method ('get ' )->with ('codebender_builder.handler ' )
242
242
->willReturn ($ apiHandler );
243
- $ controller ->expects ($ this ->at (1 ))->method ('checkForUserIdProjectId ' )->with (['files ' => []])
243
+ $ controller ->expects ($ this ->at (1 ))->method ('addUserIdProjectIdIfNotInRequest ' )->with (['files ' => []])
244
244
->willReturn (['files ' => []]);
245
245
$ controller ->expects ($ this ->at (2 ))->method ('returnProvidedAndFetchedLibraries ' )->with ([])
246
246
->willReturn (['libraries ' => []]);
@@ -435,7 +435,7 @@ public function testcheckUserIdProjectIdHasNone() {
435
435
/*
436
436
* Use ReflectionMethod class to make compile protected function accessible from current context
437
437
*/
438
- $ function = $ this ->getMethod ('checkForUserIdProjectId ' );
438
+ $ function = $ this ->getMethod ('addUserIdProjectIdIfNotInRequest ' );
439
439
440
440
$ requestContent = ['files ' => [['filename ' => 'project.ino ' , 'content ' =>'' ]]];
441
441
@@ -451,7 +451,7 @@ public function testcheckUserIdProjectIdHasOnlyUserId() {
451
451
/*
452
452
* Use ReflectionMethod class to make compile protected function accessible from current context
453
453
*/
454
- $ function = $ this ->getMethod ('checkForUserIdProjectId ' );
454
+ $ function = $ this ->getMethod ('addUserIdProjectIdIfNotInRequest ' );
455
455
456
456
$ requestContent = ['userId ' => 1 , 'files ' => [['filename ' => 'project.ino ' , 'content ' =>'' ]]];
457
457
@@ -467,7 +467,7 @@ public function testcheckUserIdProjectIdHasOnlyProjectId() {
467
467
/*
468
468
* Use ReflectionMethod class to make compile protected function accessible from current context
469
469
*/
470
- $ function = $ this ->getMethod ('checkForUserIdProjectId ' );
470
+ $ function = $ this ->getMethod ('addUserIdProjectIdIfNotInRequest ' );
471
471
472
472
$ projectFiles = ['projectId ' => 1 , 'files ' => [['filename ' => 'project.ino ' , 'content ' =>'' ]]];
473
473
0 commit comments