You are here

public function UpdateLayoutRequestHandlerTest::updatedLayoutGetsSavedToTempStore in Panels 8.4

@test

File

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

Class

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

Namespace

Drupal\Tests\panels_ipe\Unit

Code

public function updatedLayoutGetsSavedToTempStore() {
  $this
    ->setPanelsDisplayExpectations();
  $this->panelsStore
    ->expects($this
    ->never())
    ->method('save');
  $this->tempStore
    ->expects($this
    ->never())
    ->method('delete');
  $this->tempStore
    ->expects($this
    ->once())
    ->method('set');
  $this->sut
    ->handleRequest($this->panelsDisplay, $this
    ->createRequest(Json::encode($this
    ->getLayoutModel())), TRUE);
}