| @@ 70-84 (lines=15) @@ | ||
| 67 | $this->assertEquals($expected, $response); |
|
| 68 | } |
|
| 69 | ||
| 70 | public function testSetVisibility() { |
|
| 71 | $this->collectionsService->expects($this->once()) |
|
| 72 | ->method('setVisibility') |
|
| 73 | ->with( |
|
| 74 | 'starred', |
|
| 75 | $this->equalTo(0) |
|
| 76 | ) |
|
| 77 | ->will($this->returnValue(true)); |
|
| 78 | ||
| 79 | $expected = $this->generateResponse(function () { |
|
| 80 | return true; |
|
| 81 | }); |
|
| 82 | $response = $this->controller->setVisibility('starred', 0); |
|
| 83 | $this->assertEquals($expected, $response); |
|
| 84 | } |
|
| 85 | } |
|
| 86 | ||
| @@ 57-71 (lines=15) @@ | ||
| 54 | ); |
|
| 55 | } |
|
| 56 | ||
| 57 | public function testSet() { |
|
| 58 | $this->settingsService->expects($this->once()) |
|
| 59 | ->method('set') |
|
| 60 | ->with( |
|
| 61 | 'sortOrder', |
|
| 62 | $this->equalTo(0) |
|
| 63 | ) |
|
| 64 | ->will($this->returnValue(true)); |
|
| 65 | ||
| 66 | $expected = $this->generateResponse(function () { |
|
| 67 | return true; |
|
| 68 | }); |
|
| 69 | $response = $this->controller->set('sortOrder', 0); |
|
| 70 | $this->assertEquals($expected, $response); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||