Example #1
0
 /**
  * Test missing table manager.
  *
  * @return void
  *
  * @expectedException        Exception
  * @expectedExceptionMessage DB table manager missing.
  */
 public function testCreateWithMissingTableManager()
 {
     $db = new Database();
     $db->create($this->getRequest($this->getCreateParams()));
 }
Example #2
0
 /**
  * Test duplicate email.
  *
  * @return void
  */
 public function testCreationWithDuplicateEmail()
 {
     $this->setExpectedException('VuFind\\Exception\\Auth');
     $request = $this->getAccountCreationRequest(['username' => 'testuser2']);
     $this->auth->create($request);
 }