Skip to content

Commit 8e1fdcc

Browse files
authored
Merge pull request #28 from Codeception/upd
update links
2 parents b65eda3 + 70c9934 commit 8e1fdcc

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

src/Codeception/Module/PhpBrowser.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
*
3434
* * url *required* - start url of your app
3535
* * headers - default headers are set before each test.
36-
* * handler (default: curl) - Guzzle handler to use. By default curl is used, also possible to pass `stream`, or any valid class name as [Handler](http://docs.guzzlephp.org/en/latest/handlers-and-middleware.html#handlers).
36+
* * handler (default: curl) - Guzzle handler to use. By default curl is used, also possible to pass `stream`, or any valid class name as [Handler](https://docs.guzzlephp.org/en/latest/handlers-and-middleware.html#handlers).
3737
* * middleware - Guzzle middlewares to add. An array of valid callables is required.
3838
* * curl - curl options
3939
* * cookies - ...
4040
* * auth - ...
4141
* * verify - ...
42-
* * .. those and other [Guzzle Request options](http://docs.guzzlephp.org/en/latest/request-options.html)
42+
* * .. those and other [Guzzle Request options](https://docs.guzzlephp.org/en/latest/request-options.html)
4343
*
4444
*
4545
* ### Example (`acceptance.suite.yml`)
@@ -74,7 +74,7 @@
7474
*
7575
* Properties:
7676
*
77-
* * `guzzle` - contains [Guzzle](http://guzzlephp.org/) client instance: `\GuzzleHttp\Client`
77+
* * `guzzle` - contains [Guzzle](https://guzzlephp.org/) client instance: `\GuzzleHttp\Client`
7878
* * `client` - Symfony BrowserKit instance.
7979
*
8080
*/
@@ -193,7 +193,7 @@ protected function onReconfigure()
193193

194194
/**
195195
* Low-level API method.
196-
* If Codeception commands are not enough, use [Guzzle HTTP Client](http://guzzlephp.org/) methods directly
196+
* If Codeception commands are not enough, use [Guzzle HTTP Client](https://guzzlephp.org/) methods directly
197197
*
198198
* Example:
199199
*

tests/data/app/view/external_url.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<html>
22
<body>
3-
<a href="http://codeception.com/">Next</a>
3+
<a href="https://codeception.com/">Next</a>
44
</body>
55
</html>

tests/unit/Codeception/Module/PhpBrowserTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,11 @@ public function testCookiesForDomain()
512512
$handler = GuzzleHandlerStack::create($mock);
513513
$handler->push(GuzzleMiddleware::history($this->history));
514514

515-
$client = new GuzzleClient(['handler' => $handler, 'base_uri' => 'http://codeception.com']);
515+
$client = new GuzzleClient(['handler' => $handler, 'base_uri' => 'https://codeception.com']);
516516
$guzzleConnector = new Guzzle();
517517
$guzzleConnector->setClient($client);
518518
$guzzleConnector->getCookieJar()->set(new Cookie('hello', 'world'));
519-
$guzzleConnector->request('GET', 'http://codeception.com/');
519+
$guzzleConnector->request('GET', 'https://codeception.com/');
520520
$this->assertArrayHasKey('cookies', $this->history[0]['options']);
521521
/** @var $cookie GuzzleHttp\Cookie\SetCookie **/
522522
$cookies = $this->history[0]['options']['cookies']->toArray();

tests/unit/Codeception/Module/TestsForBrowsers.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ abstract class TestsForBrowsers extends TestsForWeb
1717

1818
public function testAmOnSubdomain()
1919
{
20-
$this->module->_reconfigure(['url' => 'http://google.com']);
20+
$this->module->_reconfigure(['url' => 'https://google.com']);
2121
$this->module->amOnSubdomain('user');
22-
$this->assertEquals('http://user.google.com', $this->module->_getUrl());
22+
$this->assertEquals('https://user.google.com', $this->module->_getUrl());
2323

24-
$this->module->_reconfigure(['url' => 'http://www.google.com']);
24+
$this->module->_reconfigure(['url' => 'https://www.google.com']);
2525
$this->module->amOnSubdomain('user');
26-
$this->assertEquals('http://user.google.com', $this->module->_getUrl());
26+
$this->assertEquals('https://user.google.com', $this->module->_getUrl());
2727
}
2828

2929
public function testOpenAbsoluteUrls()

tests/unit/Codeception/Module/TestsForWeb.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public function testSeeLink()
119119
{
120120
$this->module->amOnPage('/external_url');
121121
$this->module->seeLink('Next');
122-
$this->module->seeLink('Next', 'http://codeception.com/');
122+
$this->module->seeLink('Next', 'https://codeception.com/');
123123
// Without TLD and trailing slash
124-
$this->module->dontSeeLink('Next', 'http://codeception');
124+
$this->module->dontSeeLink('Next', 'https://codeception');
125125
}
126126

127127
public function testDontSeeLink()
@@ -150,9 +150,9 @@ public function testSeeLinkFailsIfHrefDoesNotMatch()
150150
public function testSeeLinkFailsIfHrefDoesNotMatchExactly()
151151
{
152152
$this->expectException(AssertionFailedError::class);
153-
$this->expectExceptionMessage("No links containing text 'Next' and URL 'http://codeception' were found in page /external_url");
153+
$this->expectExceptionMessage("No links containing text 'Next' and URL 'https://codeception' were found in page /external_url");
154154
$this->module->amOnPage('/external_url');
155-
$this->module->seeLink('Next', 'http://codeception');
155+
$this->module->seeLink('Next', 'https://codeception');
156156
}
157157

158158
public function testDontSeeLinkFailsIfTextMatches()
@@ -166,9 +166,9 @@ public function testDontSeeLinkFailsIfTextMatches()
166166
public function testDontSeeLinkFailsIfTextAndUrlMatches()
167167
{
168168
$this->expectException(AssertionFailedError::class);
169-
$this->expectExceptionMessage("Link containing text 'Next' and URL 'http://codeception.com/' was found in page /external_url");
169+
$this->expectExceptionMessage("Link containing text 'Next' and URL 'https://codeception.com/' was found in page /external_url");
170170
$this->module->amOnPage('/external_url');
171-
$this->module->dontSeeLink('Next', 'http://codeception.com/');
171+
$this->module->dontSeeLink('Next', 'https://codeception.com/');
172172
}
173173

174174
public function testSeeLinkMatchesRelativeLink()

0 commit comments

Comments
 (0)