Class webtest_chartdisplay

Description

userinterface tests for ChartDisplay plugin

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

WebTestCase
   |
   --stockmaniac_webtestcase
      |
      --webtest_chartdisplay
Variable Summary
 string $_security
Method Summary
 void __construct (string $testsecurity)
Variables
string $_security (line 44)

name of the security used for the tests

  • we create a position using this name, thus a security with this name *must* already exist in the database!

  • 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 53)

test the ChartDisplay plugin

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

Redefinition of:
stockmaniac_webtestcase::__construct()
test_chartdisplay_plugin_is_shown (line 63)

see whether the ChartDisplay plugin is really shown

  • access: public
void test_chartdisplay_plugin_is_shown ()
test_chart_image (line 80)

see whether the image can be produced

  • this does *not* check whether a image is really send to the browers
  • we only call the image URL in unittest mode and look for call traces (actually stockmaniac_webtestcase looks for call traces automatically)

  • access: public
void test_chart_image ()

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:31 +0200 by phpDocumentor 1.4.3