/** * @test */ public function findSingleByWhereClauseAndDatabaseAccessDisabledThrowsException() { $this->setExpectedException('tx_oelib_Exception_NotFound', 'No record can be retrieved from the database because database ' . 'access is disabled for this mapper instance.'); $this->subject->disableDatabaseAccess(); $this->subject->findSingleByWhereClause(array('title' => 'foo')); }