Example #1
0
 /**
  * test collectParam() method
  *
  * @test
  */
 public function collectParam()
 {
     $this->generateComponent(['mocks' => ['Api' => ['collectParams']]]);
     $this->Api->expects($this->once())->method('collectParams')->with(['test'])->will($this->returnValue(['test' => 'testValue']));
     $result = $this->Api->collectParam('test');
     $this->assertSame('testValue', $result);
 }