/** * Attempt to run a file-based preHook and set the value of a field * * @return void */ public function testForm() { $this->controller->process(); $exists = $this->modx->getCount('modUser', array('username' => '*****@*****.**')); $this->assertTrue($exists > 0); }
/** * Attempt to run a file-based preHook and set the value of a field * * @return void */ public function testForm() { $this->controller->process(); $this->assertTrue($this->login->controller->validator->hasErrorsInField('email')); }