/** * 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())); }
/** * Test duplicate email. * * @return void */ public function testCreationWithDuplicateEmail() { $this->setExpectedException('VuFind\\Exception\\Auth'); $request = $this->getAccountCreationRequest(['username' => 'testuser2']); $this->auth->create($request); }