getPortalInformations() public méthode

Returns the portal informations for the given environment.
public getPortalInformations ( $environment, array | null $types = null ) : PortalInformation[]
$environment string The environment to deliver
$types array | null Defines which typr of portals are requested (null for all)
Résultat Sulu\Component\Webspace\PortalInformation[]
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Unknown portal environment "unknown"
  */
 public function testGetPortalInformationsUnknown()
 {
     $this->webspaceCollection->getPortalInformations('unknown');
 }