You are here

public function UpdateLayoutRequestHandlerTest::hookPreSaveGetsCalledBeforeSave in Panels 8.3

@test

File

tests/src/Unit/panels_ipe/UpdateLayoutRequestHandlerTest.php, line 97

Class

UpdateLayoutRequestHandlerTest
Tests for \Drupal\panels_ipe\Helpers\UpdateLayoutRequestHandler.

Namespace

Drupal\Tests\panels\Unit\panels_ipe

Code

public function hookPreSaveGetsCalledBeforeSave() {
  $this
    ->setPanelsDisplayExpectations();
  $this->moduleHandler
    ->expects($this
    ->once())
    ->method('invokeAll');
  $this->sut
    ->handleRequest($this->panelsDisplay, $this
    ->createRequest(Json::encode($this
    ->getLayoutModel())), TRUE);
}