Sulu\Component\Webspace\Manager\WebspaceManager::getPortals PHP Method

getPortals() public method

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

Usage Example

コード例 #1
0
 public function testGetPortals()
 {
     $portals = $this->webspaceManager->getPortals();
     $this->assertCount(9, $portals);
     $this->assertEquals('massiveart_us', $portals['massiveart_us']->getKey());
     $this->assertEquals('massiveart_ca', $portals['massiveart_ca']->getKey());
     $this->assertEquals('sulucmf_at', $portals['sulucmf_at']->getKey());
     $this->assertEquals('dancmf_at', $portals['dancmf_at']->getKey());
     $this->assertEquals('sulucmf_singlelanguage_at', $portals['sulucmf_singlelanguage_at']->getKey());
     $this->assertEquals('sulucmf_withoutportallocalizations_at', $portals['sulucmf_withoutportallocalizations_at']->getKey());
     $this->assertEquals('sulucmf_io_error_templates', $portals['sulucmf_io_error_templates']->getKey());
     $this->assertEquals('sulucmf_io_error_templates_default_only', $portals['sulucmf_io_error_templates_default_only']->getKey());
     $this->assertEquals('sulucmf_io_error_templates_missing_default', $portals['sulucmf_io_error_templates_missing_default']->getKey());
 }