public function testSetFormNoCustomAttributes() { $baseUrl = 'base_url'; $this->dataForm->expects($this->once())->method('setParent')->with($this->model)->willReturnSelf(); $this->dataForm->expects($this->once())->method('setBaseUrl')->with($baseUrl)->willReturnSelf(); $this->urlBuilder->expects($this->once())->method('getBaseUrl')->willReturn($baseUrl); $this->assertEquals($this->model, $this->model->setForm($this->dataForm)); }