public function testIRefocusOnThePrimaryPage() { $this->setSessionExpectation(); $this->session->expects($this->once())->method("switchToIFrame")->with($this->isNull())->will($this->returnValue(null)); $this->context->iRefocusOnThePrimaryPage('Frame'); }