protected function _process()
	{
		$this->_msg( 'Adding customer performance data', 0 );


		$context =  $this->_getContext();
		$customerManager = MShop_Customer_Manager_Factory::createManager( $context );

		$customerItem = $customerManager->createItem();
		$customerItem->setCode( 'demo-test' );
		$customerItem->setLabel( 'Test demo unitperf user' );
		$customerItem->setPassword( sha1( microtime(true) . getmypid() . rand() ) );
		$customerItem->setStatus( 1 );

		$addrItem = $customerItem->getPaymentAddress();
		$addrItem->setCompany( 'Test company' );
		$addrItem->setVatID( 'DE999999999' );
		$addrItem->setSalutation( 'mr' );
		$addrItem->setFirstname( 'Testdemo' );
		$addrItem->setLastname( 'Perfuser' );
		$addrItem->setAddress1( 'Test street' );
		$addrItem->setAddress2( '1' );
		$addrItem->setPostal( '1000' );
		$addrItem->setCity( 'Test city' );
		$addrItem->setLanguageId( 'en' );
		$addrItem->setCountryId( 'DE' );
		$addrItem->setEmail( 'me@localhost' );

		$customerManager->saveItem( $customerItem );

		$this->_status( 'done' );
	}
protected function _process()
	{
		$this->_msg( 'Adding customer performance data', 0 );


		$context =  $this->_getContext();
		$customerManager = MShop_Customer_Manager_Factory::createManager( $context );

		$customerItem = $customerManager->createItem();
		$customerItem->setCode( 'demo-test' );
		$customerItem->setLabel( 'Test demo unitperf user' );
		$customerItem->setPassword( sha1( microtime(true) . getmypid() . rand() ) );
		$customerItem->setStatus( 1 );

		$addrItem = $customerItem->getPaymentAddress();
		$addrItem->setCompany( 'Test company' );
		$addrItem->setVatID( 'DE999999999' );
		$addrItem->setSalutation( 'mr' );
		$addrItem->setFirstname( 'Testdemo' );
		$addrItem->setLastname( 'Perfuser' );
		$addrItem->setAddress1( 'Test street' );
		$addrItem->setAddress2( '1' );
		$addrItem->setPostal( '1000' );
		$addrItem->setCity( 'Test city' );
		$addrItem->setLanguageId( 'en' );
		$addrItem->setCountryId( 'DE' );
		$addrItem->setEmail( 'me@localhost' );

		$customerManager->saveItem( $customerItem );

		$this->_status( 'done' );
	}
protected function _process ( ) { $ this -> _msg ( 'Adding customer performance data' , 0 ) ; $ context = $ this -> _getContext ( ) ; $ customerManager = MShop_Customer_Manager_Factory :: createManager ( $ context ) ; $ customerItem = $ customerManager -> createItem ( ) ; $ customerItem -> setCode ( 'demo-test' ) ; $ customerItem -> setLabel ( 'Test demo unitperf user' ) ; $ customerItem -> setPassword ( sha1 ( microtime ( true ) . getmypid ( ) . rand ( ) ) ) ; $ customerItem -> setStatus ( 1 ) ; $ addrItem = $ customerItem -> getPaymentAddress ( ) ; $ addrItem -> setCompany ( 'Test company' ) ; $ addrItem -> setVatID ( 'DE999999999' ) ; $ addrItem -> setSalutation ( 'mr' ) ; $ addrItem -> setFirstname ( 'Testdemo' ) ; $ addrItem -> setLastname ( 'Perfuser' ) ; $ addrItem -> setAddress1 ( 'Test street' ) ; $ addrItem -> setAddress2 ( '1' ) ; $ addrItem -> setPostal ( '1000' ) ; $ addrItem -> setCity ( 'Test city' ) ; $ addrItem -> setLanguageId ( 'en' ) ; $ addrItem -> setCountryId ( 'DE' ) ; $ addrItem -> setEmail ( 'me@localhost' ) ; $ customerManager -> saveItem ( $ customerItem ) ; $ this -> _status ( 'done' ) ; }
Inserts customer items.
Inserts customer items .