/** * @group DataModel * @group DataModelLock * @covers FOF30\Model\DataModel::lock */ public function testLockException() { $config = array('idFieldName' => 'foftest_bare_id', 'tableName' => '#__foftest_bares'); $this->setExpectedException('RuntimeException'); $model = new DataModelStub(static::$container, $config); $model->lock(); }