Tests: Fix PHP strict standards warnings
This commit is contained in:
parent
71275eac2c
commit
bb51368f3a
@ -10,7 +10,7 @@ class keyboardShortcutTest extends minifluxTestCase
|
|||||||
public function setUpPage()
|
public function setUpPage()
|
||||||
{
|
{
|
||||||
$url = $this->getURLPageFirstFeed();
|
$url = $this->getURLPageFirstFeed();
|
||||||
parent::setUpPage($url);
|
$this->doLoginIfRequired($url);
|
||||||
|
|
||||||
$this->basePageHeading = $this->getBasePageHeading();
|
$this->basePageHeading = $this->getBasePageHeading();
|
||||||
$this->expectedPageUrl = $url;
|
$this->expectedPageUrl = $url;
|
||||||
|
@ -31,10 +31,8 @@ abstract class minifluxTestCase extends PHPUnit_Extensions_Selenium2TestCase
|
|||||||
$this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_BASEURL);
|
$this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_BASEURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUpPage($url)
|
public function doLoginIfRequired($url)
|
||||||
{
|
{
|
||||||
parent::setUpPage();
|
|
||||||
|
|
||||||
// (re)load the requested page
|
// (re)load the requested page
|
||||||
$this->url($url);
|
$this->url($url);
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class pageBookmarksTest extends minifluxTestCase
|
|||||||
public function setUpPage()
|
public function setUpPage()
|
||||||
{
|
{
|
||||||
$url = $this->getURLPageBookmarks();
|
$url = $this->getURLPageBookmarks();
|
||||||
parent::setUpPage($url);
|
$this->doLoginIfRequired($url);
|
||||||
|
|
||||||
$this->basePageHeading = $this->getBasePageHeading();
|
$this->basePageHeading = $this->getBasePageHeading();
|
||||||
$this->expectedPageUrl = $url;
|
$this->expectedPageUrl = $url;
|
||||||
|
@ -10,7 +10,7 @@ class pageFirstFeedTest extends minifluxTestCase
|
|||||||
public function setUpPage()
|
public function setUpPage()
|
||||||
{
|
{
|
||||||
$url = $this->getURLPageFirstFeed();
|
$url = $this->getURLPageFirstFeed();
|
||||||
parent::setUpPage($url);
|
$this->doLoginIfRequired($url);
|
||||||
|
|
||||||
$this->basePageHeading = $this->getBasePageHeading();
|
$this->basePageHeading = $this->getBasePageHeading();
|
||||||
$this->expectedPageUrl = $url;
|
$this->expectedPageUrl = $url;
|
||||||
|
@ -10,7 +10,7 @@ class pageHistoryTest extends minifluxTestCase
|
|||||||
public function setUpPage()
|
public function setUpPage()
|
||||||
{
|
{
|
||||||
$url = $this->getURLPageHistory();
|
$url = $this->getURLPageHistory();
|
||||||
parent::setUpPage($url);
|
$this->doLoginIfRequired($url);;
|
||||||
|
|
||||||
$this->basePageHeading = $this->getBasePageHeading();
|
$this->basePageHeading = $this->getBasePageHeading();
|
||||||
$this->expectedPageUrl = $url;
|
$this->expectedPageUrl = $url;
|
||||||
|
@ -10,7 +10,7 @@ class pageUnreadTest extends minifluxTestCase
|
|||||||
public function setUpPage()
|
public function setUpPage()
|
||||||
{
|
{
|
||||||
$url = $this->getURLPageUnread();
|
$url = $this->getURLPageUnread();
|
||||||
parent::setUpPage($url);
|
$this->doLoginIfRequired($url);
|
||||||
|
|
||||||
$this->expectedPageUrl = $url;
|
$this->expectedPageUrl = $url;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user