diff options
Diffstat (limited to 'tests')
13 files changed, 22 insertions, 29 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page index 9b149b45..b2aefc3b 100755 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.page @@ -2,7 +2,7 @@ <h1>Active HyperLink Test Case</h1> <div style="margin:1em; padding:1em; border:1px solid #ccc; text-align:center;"> - <com:TActiveHyperLink ID="link1" Text="Link 1" NavigateUrl="http://www.pradosoft.com" /> + <com:TActiveHyperLink ID="link1" Text="Link 1" NavigateUrl="https://github.com/pradosoft/prado" /> </div> <com:TActiveButton ID="button1" Text="Change Text" OnClick="change_text" /> <com:TActiveButton ID="button2" Text="Change Image" OnClick="change_image" /> diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php index ef3f597e..5ccf2e70 100755 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveHyperLinkTest.php @@ -4,7 +4,7 @@ class ActiveHyperLinkTest extends TPage { function change_text() { - $this->link1->Text = "Pradosoft.com"; + $this->link1->Text = "Prado framework"; } function change_image() @@ -19,6 +19,6 @@ class ActiveHyperLinkTest extends TPage function change_url() { - $this->link1->NavigateUrl = "http://www.xlab6.com"; + $this->link1->NavigateUrl = "http://www.google.com"; } } diff --git a/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php index f6117b9d..4f8d5730 100755 --- a/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveHyperLinkTestCase.php @@ -12,6 +12,6 @@ class ActiveHyperLinkTestCase extends PradoGenericSelenium2Test $this->byId("{$base}button1")->click(); $this->pause(800); - $this->assertText("{$base}link1", "Pradosoft.com"); + $this->assertText("{$base}link1", "Prado framework"); } } diff --git a/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php b/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php index 9fdb78bf..1fcb2744 100755 --- a/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php @@ -6,7 +6,7 @@ class QuickstartHyperLinkTestCase extends PradoGenericSelenium2Test { $this->url("../../demos/quickstart/index.php?page=Controls.Samples.THyperLink.Home&notheme=true&lang=en"); $this->assertEquals("PRADO QuickStart Sample", $this->title()); - $this->assertElementPresent("//a[@href=\"http://www.pradosoft.com/\" and @target=\"_blank\"]"); + $this->assertElementPresent("//a[@href=\"https://github.com/pradosoft/prado/\" and @target=\"_blank\"]"); $this->assertSourceContains("Welcome to"); $this->assertSourceContains("Body contents"); $this->assertElementPresent("//a[img/@alt='Hello World']"); diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index c92cd9c0..7f3ee506 100755 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -10,13 +10,6 @@ class Layout extends TTemplateControl $this->getPage()->setTitle("Verifying $type $num"); $this->ticketlink->setText("Verifying $type $num"); - //TODO New issues will link to https://github.com/pradosoft/prado/issues/{$num} - if(strToLower($type) === 'issue') { - $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}"); - } - else { - $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}"); - } - + $this->ticketlink->setNavigateUrl("https://github.com/pradosoft/prado/issues/{$num}"); } } diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket121.page b/tests/FunctionalTests/tickets/protected/pages/Ticket121.page index 9c9633d3..ce17726d 100755 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket121.page +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket121.page @@ -1,7 +1,7 @@ <com:TContent ID="Content">
<com:TImageButton
- ImageUrl="http://www.pradosoft.com/images/powered.gif"
+ ImageUrl="http://pradosoft.github.io/docs/powered.gif"
Text="Foo"
ValidationGroup="Foo"
OnClick="buttonClicked" />
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php index 9af5b134..051c39db 100755 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php @@ -6,6 +6,6 @@ class Layout extends TTemplateControl { $this->getPage()->setTitle("Verifying Ticket 653"); $this->ticketlink->setText("Verifying Ticket 653"); - $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/653"); + $this->ticketlink->setNavigateUrl("#"); } } diff --git a/tests/FunctionalTests/tickets/tests/Ticket595TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket595TestCase.php index 27d57a91..381f0d6e 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket595TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket595TestCase.php @@ -15,7 +15,7 @@ class Ticket595TestCase extends PradoGenericSelenium2Test $this->byId($base.'ctl2')->click(); $this->assertAttribute($base.'A@class','errorclassA'); - $this->type($base.'A', 'test@pradosoft.com'); + $this->type($base.'A', 'test@prado.local'); $this->byId($base.'ctl2')->click(); $this->pause(800); $this->assertAttribute($base.'A@class',''); @@ -29,7 +29,7 @@ class Ticket595TestCase extends PradoGenericSelenium2Test $this->pause(800); $this->assertAttribute($base.'B@class',' errorclassB'); - $this->type($base.'B', 'test@pradosoft.com'); + $this->type($base.'B', 'test@prado.local'); $this->byId($base.'ctl5')->click(); $this->pause(800); $this->assertAttribute($base.'B@class',''); diff --git a/tests/FunctionalTests/validators/protected/pages/ImageButton.page b/tests/FunctionalTests/validators/protected/pages/ImageButton.page index d1fae361..9aa6a375 100755 --- a/tests/FunctionalTests/validators/protected/pages/ImageButton.page +++ b/tests/FunctionalTests/validators/protected/pages/ImageButton.page @@ -6,7 +6,7 @@ Text="Textbox1 required"
ControlToValidate="TextBox1"
ValidationGroup="Group1" />
-<com:TImageButton ImageUrl="http://www.pradosoft.com/images/powered.gif"
+<com:TImageButton ImageUrl="http://pradosoft.github.io/docs/powered.gif"
ValidationGroup="Group1"
OnClick="button1Clicked" />
<com:TLabel ID="Result1" />
@@ -17,7 +17,7 @@ <com:TRequiredFieldValidator
Text="Textbox2 required"
ControlToValidate="TextBox2" />
-<com:TImageButton ImageUrl="http://www.pradosoft.com/images/powered.gif"
+<com:TImageButton ImageUrl="http://pradosoft.github.io/docs/powered.gif"
OnClick="button2Clicked" />
<com:TLabel ID="Result2" />
@@ -29,7 +29,7 @@ EnableClientScript="false"
ControlToValidate="TextBox3"
ValidationGroup="Group3" />
-<com:TImageButton ImageUrl="http://www.pradosoft.com/images/powered.gif"
+<com:TImageButton ImageUrl="http://pradosoft.github.io/docs/powered.gif"
ValidationGroup="Group3"
OnClick="button3Clicked" />
<com:TLabel ID="Result3" />
diff --git a/tests/unit/Web/TAssetManagerTest.php b/tests/unit/Web/TAssetManagerTest.php index 13d2d6c1..2480830a 100644 --- a/tests/unit/Web/TAssetManagerTest.php +++ b/tests/unit/Web/TAssetManagerTest.php @@ -22,7 +22,7 @@ class TAssetManagerTest extends PHPUnit_Framework_TestCase { $_SERVER['QUERY_STRING'] = 'page=Links'; $_SERVER['SCRIPT_FILENAME'] = __FILE__; $_SERVER['PATH_INFO'] = __FILE__; - $_SERVER['HTTP_REFERER'] = 'http://www.pradosoft.com'; + $_SERVER['HTTP_REFERER'] = 'https://github.com/pradosoft/prado'; $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3'; $_SERVER['REMOTE_HOST'] = 'localhost'; diff --git a/tests/unit/Web/THttpCookieTest.php b/tests/unit/Web/THttpCookieTest.php index 206ef105..c94282f1 100644 --- a/tests/unit/Web/THttpCookieTest.php +++ b/tests/unit/Web/THttpCookieTest.php @@ -15,8 +15,8 @@ class THttpCookieTest extends PHPUnit_Framework_TestCase { public function testSetDomain() { $cookie=new THttpCookie('name','value'); - $cookie->setDomain('pradosoft.com'); - self::assertEquals('pradosoft.com',$cookie->getdomain()); + $cookie->setDomain('pradoframework.net'); + self::assertEquals('pradoframework.net',$cookie->getdomain()); } public function testSetExpire() { diff --git a/tests/unit/Web/THttpRequestTest.php b/tests/unit/Web/THttpRequestTest.php index 7f5da17d..314cce0a 100644 --- a/tests/unit/Web/THttpRequestTest.php +++ b/tests/unit/Web/THttpRequestTest.php @@ -23,7 +23,7 @@ class THttpRequestTest extends PHPUnit_Framework_TestCase { $_SERVER['QUERY_STRING'] = 'page=Links'; $_SERVER['SCRIPT_FILENAME'] = __FILE__; $_SERVER['PATH_INFO'] = __FILE__; - $_SERVER['HTTP_REFERER'] = 'http://www.pradosoft.com'; + $_SERVER['HTTP_REFERER'] = 'https://github.com/pradosoft/prado'; $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3'; $_SERVER['REMOTE_HOST'] = 'localhost'; @@ -194,7 +194,7 @@ class THttpRequestTest extends PHPUnit_Framework_TestCase { public function testGetUrlReferrer() { $request = new THttpRequest(); $request->init(null); - self::assertEquals('http://www.pradosoft.com', $request->getUrlReferrer()); + self::assertEquals('https://github.com/pradosoft/prado', $request->getUrlReferrer()); } public function testGetBrowser() { diff --git a/tests/unit/Web/TUriTest.php b/tests/unit/Web/TUriTest.php index b610cd1b..351a2cce 100644 --- a/tests/unit/Web/TUriTest.php +++ b/tests/unit/Web/TUriTest.php @@ -7,7 +7,7 @@ Prado::using('System.Web.THttpRequest'); */ class TUriTest extends PHPUnit_Framework_TestCase { - const URISTR='http://login:p@ssw0rd:compl3x@www.pradosoft.com:80/demos/quickstart/index.php?page=test¶m1=test2#anchor'; + const URISTR='http://login:p@ssw0rd:compl3x@www.pradoframework.net:80/demos/quickstart/index.php?page=test¶m1=test2#anchor'; public function setUp () { $this->uri=new TUri(self::URISTR); @@ -18,11 +18,11 @@ class TUriTest extends PHPUnit_Framework_TestCase { } public function testConstruct() { - $url="http://www.pradosoft.com/"; + $url="http://www.pradoframework.net/"; $uri=new TUri ($url); self::assertEquals($url, $uri->getUri() ); // Bad uri test - $url="http://www.pradosoft.com:badport/test"; + $url="http://www.pradoframework.net:badport/test"; try { $url=new TUri($url); self::fail ('exception not raised with an invalid URL'); @@ -40,7 +40,7 @@ class TUriTest extends PHPUnit_Framework_TestCase { } public function testGetHost() { - self::assertEquals('www.pradosoft.com', $this->uri->getHost()); + self::assertEquals('www.pradoframework.net', $this->uri->getHost()); } public function testGetPort() { |