public function testSelectFolder() { $this->connector->expects($this->once())->method('selectFolder')->with('test'); $this->connector->expects($this->once())->method('getSelectedFolder')->will($this->returnValue('test')); $this->manager->selectFolder('test'); $this->assertEquals('test', $this->manager->getSelectedFolder()); }