eZ\Publish\Core\Helper\Tests\ContentPreviewHelperTest::testRestoreConfigScope PHP Method

testRestoreConfigScope() public method

    public function testRestoreConfigScope()
    {
        $originalSiteAccess = new SiteAccess('foo', 'bar');
        $event = new ScopeChangeEvent($originalSiteAccess);
        $this->eventDispatcher->expects($this->once())->method('dispatch')->with(MVCEvents::CONFIG_SCOPE_RESTORE, $this->equalTo($event));
        $this->previewHelper->setSiteAccess($originalSiteAccess);
        $this->assertEquals($originalSiteAccess, $this->previewHelper->restoreConfigScope());
    }