Sulu\Component\Webspace\Manager\WebspaceManager::getPortalInformations PHP Метод

getPortalInformations() публичный Метод

public getPortalInformations ( $environment )
    public function getPortalInformations($environment)
    {
        return $this->getWebspaceCollection()->getPortalInformations($environment);
    }

Usage Example

Пример #1
0
 public function testGetPortalInformations()
 {
     $portalInformations = $this->webspaceManager->getPortalInformations('dev');
     $this->assertCount(14, $portalInformations);
     $this->assertArrayHasKey('sulu.lo', $portalInformations);
     $this->assertArrayHasKey('sulu-error-templates.lo', $portalInformations);
     $this->assertArrayHasKey('sulu-single-language.lo', $portalInformations);
     $this->assertArrayHasKey('sulu-without.lo', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/en-us/w', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/en-us/s', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/en-ca/w', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/en-ca/s', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/fr-ca/w', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/fr-ca/s', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/de/w', $portalInformations);
     $this->assertArrayHasKey('massiveart.lo/de/s', $portalInformations);
 }