Example #1
0
 public function testLockWithInteger()
 {
     $inputData = 123;
     $returnData = 5;
     $this->resourceMock->expects($this->atLeastOnce())->method('getConnection')->willReturn($this->dbAdapterMock);
     $this->dbAdapterMock->expects($this->once())->method('update')->willReturn($returnData);
     $this->assertEquals($returnData, $this->model->lock($inputData, 1, 1));
 }