/** * Run test getParentCategoryId method * * @return int */ public function testGetParentCategoryId() { $this->requestMock->expects($this->once())->method('getParam')->with('parent')->will($this->returnValue(123)); $this->assertEquals(123, $this->form->getParentCategoryId()); }