public function test_get() { /** === Test Data === */ $WHERE = 'where'; $ORDER = 'order'; $LIMIT = 'limit'; $OFFSET = 'offset'; $DATA = [[1], [2]]; /** === Setup Mocks === */ // $result = $this->_repoGeneric->getEntities($this->_entityName, null, $where, $order, $limit, $offset); $this->mRepoGeneric->shouldReceive('getEntities')->once()->with($this->ENTITY_NAME, null, $WHERE, $ORDER, $LIMIT, $OFFSET)->andReturn($DATA); /** === Call and asserts === */ $res = $this->obj->get($WHERE, $ORDER, $LIMIT, $OFFSET); $this->assertEquals($DATA, $res); }