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