Class webtest_order

Description

userinterface tests for Order plugin

Located in /test/webtest_order.class.php (line 35)

WebTestCase
   |
   --stockmaniac_webtestcase
      |
      --webtest_order
Variable Summary
Method Summary
 void __construct (string $testsecurity)
 void test_add_order ([ $position_is_empty = true])
Variables
string $_comment = 'ordercomment' (line 112)

order comment

  • access: private
float $_commission = 3.5 (line 100)

order charges to be submitted

  • access: private
float $_courtage = 5.0 (line 94)

order charges to be submitted

  • access: private
float $_execute_quote = 1.5 (line 88)

quote to use when executing orders

  • access: private
int $_expires (line 69)

date when the new order(s) (_id_order) will expire, unix-timestamp

  • access: private
int $_id_order (line 57)

id of the newly created order for _security

int $_id_position (line 51)

id of the position created for _security

  • access: private
int $_issued (line 63)

date when the new order(s) (_id_order) was issued, unix-timestamp

  • access: private
float $_limit = 1.99 (line 82)

quote limit for buying/selling

  • access: private
float $_provision = 1.5 (line 106)

order charges to be submitted

  • access: private
string $_security (line 44)

name of the security used for the tests

  • we create buy/sell orders for this security, it *must* already exist in the database!

  • access: private
int $_shares = 100 (line 75)

number of shared to be purchased/sold

  • access: private

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 121)

test the Order plugin

  • access: public
  • uses: $_security;
void __construct (string $testsecurity)
  • string $testsecurity

Redefinition of:
stockmaniac_webtestcase::__construct()
test_add_order (line 151)

test add new order

void test_add_order ([ $position_is_empty = true])
  • $position_is_empty
test_cancel_order (line 235)

try to cancel a order

  • access: public
void test_cancel_order ()
test_edit_execute_order (line 202)

try to edit and execute a order

  • access: public
void test_edit_execute_order ()
test_order_plugin_is_shown (line 136)

see whether the Order plugin is really shown

  • access: public
void test_order_plugin_is_shown ()

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