コード例 #1
0
 public function testCanCreateUpdatePasswordForm()
 {
     $updatePasswordForm = new UpdatePasswordForm('testform');
     $updatePasswordForm->prepare();
     $this->assertTrue($updatePasswordForm->get('password') instanceof Element);
     $this->assertTrue($updatePasswordForm->get('confirmpassword') instanceof Element);
     $this->assertTrue($updatePasswordForm->get('send') instanceof Element);
     Bootstrap::initDatabase();
 }
コード例 #2
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->AuthAdaptorMySQL = new AuthAdaptorMySQL();
     $this->serviceManager = Bootstrap::getServiceManager();
     $this->AuthAdaptorMySQL->setServiceLocator($this->serviceManager);
     $this->assertTrue($this->AuthAdaptorMySQL->getServiceLocator() == $this->serviceManager);
     Bootstrap::initDatabase();
 }