/** * @test */ public function increaseRelationCounterThrowsExceptionOnInexistentFieldName() { $this->setExpectedException('InvalidArgumentException', 'The table tx_oelib_test has no column inexistent_column.'); $uid = $this->subject->createRecord('tx_oelib_test'); $this->subject->increaseRelationCounter('tx_oelib_test', $uid, 'inexistent_column'); }