예제 #1
0
파일: GenericTest.php 프로젝트: Joal01/fof
 /**
  * @group           DataModel
  * @group           DataModelWhere
  * @covers          FOF30\Model\DataModel::where
  */
 public function testWhereException()
 {
     $this->setExpectedException('FOF30\\Model\\DataModel\\Exception\\InvalidSearchMethod');
     $config = array('idFieldName' => 'foftest_bare_id', 'tableName' => '#__foftest_bares');
     $model = new DataModelStub(static::$container, $config);
     $model->where('id', 'wrong', null);
 }