irm-1.6-b3/testing/TestHelpers.php
/** Initiate a login to the test system.
	 * Goes to the login page and enters username/password information
	 * as well as selecting the database (if provided).
	 *
	 * Note that the database specification must be the visible name of
	 * the DB, not the actual ID.
	 */
Initiate a login to the test system.
Goes to the login page and enters username/password information
as well as selecting the database (if provided).

Note that the database specification must be the visible name of
the DB, not the actual ID.
Initiate a login to the test system . Goes to the login page and enters username / password information as well as selecting the database ( if provided ) . Note that the database specification must be the visible name of the DB not the actual ID .
function _Login($user, $pass, $db = NULL)
	{
		$this->get(TESTING_BASEURI);
		$this->assertTrue($this->setField('name', $user));
		$this->assertTrue($this->setField('password', $pass));
		if ($db !== NULL)
		{
			$this->assertTrue($this->setField('dbuse', $db));
		}
		$this->clickSubmit('Login');
		$this->assertTitle('IRM: Command Center');
		$this->assertNoUnwantedPattern(PHP_ERROR_REGEX);
	}
function _Login ( $ user , $ pass , $ db = NULL ) { $ this -> get ( TESTING_BASEURI ) ; $ this -> assertTrue ( $ this -> setField ( 'name' , $ user ) ) ; $ this -> assertTrue ( $ this -> setField ( 'password' , $ pass ) ) ; if ( $ db !== NULL ) { $ this -> assertTrue ( $ this -> setField ( 'dbuse' , $ db ) ) ; } $ this -> clickSubmit ( 'Login' ) ; $ this -> assertTitle ( 'IRM: Command Center' ) ; $ this -> assertNoUnwantedPattern ( PHP_ERROR_REGEX ) ; }
Initiate a login to the test system.
Initiate a login to the test system .