public function testCountAll()
 {
     $returnData = 123;
     $this->resourceMock->expects($this->once())->method('getConnection')->willReturn($this->dbAdapterMock);
     $this->dbAdapterMock->expects($this->once())->method('select')->willReturn($this->selectMock);
     $this->dbAdapterMock->expects($this->once())->method('fetchOne')->willReturn($returnData);
     $this->assertEquals($returnData, $this->model->countAll());
 }
Exemple #2
0
 public function testCountAll()
 {
     $this->assertSame(1, $this->_model->countAll());
 }