public function test_updateBalances()
 {
     /** === Test Data === */
     $TBL_BALANCE = 'balance table';
     /** === Setup Mocks === */
     // $this->_conn->beginTransaction();
     $this->mConn->shouldReceive('beginTransaction');
     // $tbl = $this->_resource->getTableName(Balance::ENTITY_NAME);
     $this->mResource->shouldReceive('getTableName')->once()->with(\Praxigento\Accounting\Data\Entity\Balance::ENTITY_NAME)->andReturn($TBL_BALANCE);
     // $this->_conn->insert($tbl, $data);
     $this->mConn->shouldReceive('insert');
     // $this->_conn->commit();
     $this->mConn->shouldReceive('commit');
     /** === Call and asserts  === */
     $updateData = [21 => ['20151123' => [Balance::ATTR_ACCOUNT_ID => '1', Balance::ATTR_DATE => '20151123']]];
     $this->repo->updateBalances($updateData);
 }
 public function test_getTransactionsForPeriod()
 {
     $data = $this->_obj->getTransactionsForPeriod(6, '2015-01-01 00:00:00', '2016-12-31 23:59:59');
     $this->assertTrue($data > 0);
 }