Class webtest_portfoliomanager

Description

userinterface tests for ObjectManager plugin

Located in /test/webtest_portfoliomanager.class.php (line 34)

WebTestCase
   |
   --stockmaniac_webtestcase
      |
      --webtest_portfoliomanager
Variable Summary
Method Summary
 webtest_portfoliomanager __construct ( $security)
 void get_portfolio ()
 void test_documents ()
 void test_portfolios ()
 void test_transfers ()
 void; _add_portfolio ([string $name = false], [string $taxallowance = false], [string $comment = false])
Variables
mixed $_comment = 'testcomment' (line 38)
mixed $_id_security (line 40)
  • access: private
mixed $_portfolio = 'testportfolio' (line 36)
mixed $_security (line 39)
  • access: private
mixed $_taxallowance = '999.97' (line 37)

Inherited Variables

Inherited from stockmaniac_webtestcase

stockmaniac_webtestcase::$dbc
stockmaniac_webtestcase::$_auto_clicklink
stockmaniac_webtestcase::$_pass
stockmaniac_webtestcase::$_skip_autologin
stockmaniac_webtestcase::$_skip_backtomainpage
stockmaniac_webtestcase::$_user
Methods
Constructor __construct (line 42)
  • access: public
webtest_portfoliomanager __construct ( $security)
  • $security

Redefinition of:
stockmaniac_webtestcase::__construct()
get_portfolio (line 58)

returns name of the created testportfolio

void get_portfolio ()
test_documents (line 158)

test document functionality

  • use ourselfs as upload
  • a second browser is required to download the file since the standard tests will detect many failures on non-html text
  • the hashed content is compared to verify correctness

  • todo: delete document tests are broken because posting arrays does not seem to work, affected code is disabled
  • access: public
void test_documents ()
test_portfoliomanager_present (line 67)

test whether the portfoliomanager plugin is actually shown

  • access: public
void test_portfoliomanager_present ()
test_portfolios (line 76)

test portfolio related public functionality

  • access: public
void test_portfolios ()
test_transfers (line 120)

test position transfer functionality

  • todo: transfer position tests are broken because posting arrays does not seem to work and SimpleTest does not seem to understand <optgroup> tags, affected code is disabled
  • access: public
void test_transfers ()
_add_portfolio (line 202)

add a new portfolio and verify that it worked

  • if $name, $taxallowance and $comment are not given it'll take the class default properties

void; _add_portfolio ([string $name = false], [string $taxallowance = false], [string $comment = false])
  • string $name
  • string $taxallowance
  • string $comment

Inherited Methods

Inherited From stockmaniac_webtestcase

 stockmaniac_webtestcase::__construct()
 stockmaniac_webtestcase::get_randomized_string()
 stockmaniac_webtestcase::init_dbc()
 stockmaniac_webtestcase::setUP()
 stockmaniac_webtestcase::set_auto_clicklink()
 stockmaniac_webtestcase::tearDown()
 stockmaniac_webtestcase::toggle_autologin()
 stockmaniac_webtestcase::toggle_backtomainpage()

Documentation generated on Sun, 22 Aug 2010 11:20:32 +0200 by phpDocumentor 1.4.3