public function testInvalidPart()
{
$this->logger = $this->getMockForAbstractClass('\\Psr\\Log\\LoggerInterface', [], '', true, true, true, ['warning']);
$this->logger->expects($this->once())->method('warning')->will($this->returnValue(null));
$this->webspaceManager = new WebspaceManager($this->loader, $this->logger, ['cache_dir' => __DIR__ . '/../../../../Resources/cache', 'config_dir' => __DIR__ . '/../../../../Resources/DataFixtures/Webspace/both', 'cache_class' => 'WebspaceCollectionCache' . uniqid()]);
$webspaces = $this->webspaceManager->getWebspaceCollection();
$this->assertEquals(2, $webspaces->length());
$webspace = $webspaces->getWebspace('massiveart');
$this->assertEquals('Massive Art', $webspace->getName());
$this->assertEquals('massiveart', $webspace->getKey());
$webspace = $webspaces->getWebspace('sulu_io');
$this->assertEquals('Sulu CMF', $webspace->getName());
$this->assertEquals('sulu_io', $webspace->getKey());
}