public function testItShouldCallGetFactory() { $session = $this->mock('\\PHPCRAPI\\PHPCR\\Session')->getFactory($this->once())->new($this->repository, 'default'); $manager = new SessionManager($session); $manager->getFactory(); }