Skip to content

Commit

Permalink
MNT Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 29, 2023
1 parent 076ffa7 commit 2c48df6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use SilverStripe\Forms\GridField\GridFieldConfig;
use SilverStripe\Forms\GridField\GridFieldDetailForm;
use SilverStripe\Security\SecurityToken;
use SilverStripe\Control\HTTPResponse;

class ResourceFieldItemRequestTest extends SapphireTest
{
Expand Down Expand Up @@ -123,6 +124,7 @@ protected function moveFieldFixture($fixture, $newPosition)
$controllerMock = $this->createMock(Controller::class);
$controllerMock->method('Link')->willReturn('test');
$controllerMock->method('getRequest')->willReturn($request);
$controllerMock->method('getResponse')->willReturn(new HTTPResponse('test'));

// Create an item request
$itemRequest = new ResourceFieldItemRequest(
Expand Down

0 comments on commit 2c48df6

Please sign in to comment.