Skip to content

update tests folder links #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/commands/ApiControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\commands;
Expand Down
4 changes: 2 additions & 2 deletions tests/commands/GuideControllerTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\commands;
Expand Down
6 changes: 3 additions & 3 deletions tests/data/api/animal/Animal.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\data\api\animal;
Expand Down Expand Up @@ -43,4 +43,4 @@ public function getAge()
{
return time() - $this->birthDate;
}
}
}
4 changes: 2 additions & 2 deletions tests/data/api/animal/Cat.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\data\api\animal;
Expand Down
4 changes: 2 additions & 2 deletions tests/data/api/animal/Dog.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\data\api\animal;
Expand Down
10 changes: 5 additions & 5 deletions tests/models/BaseDocTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\models;
Expand All @@ -17,18 +17,18 @@ class BaseDocTest extends TestCase
*/
public function testExtractFirstSentenceWithBackticks()
{
$initialText = 'fallback host info (e.g. `http://www.yiiframework.com`) used when '
$initialText = 'fallback host info (e.g. `https://www.yiiframework.com`) used when '
. '[[\yii\web\Request::$hostInfo|Request::$hostInfo]] is invalid. This value will replace '
. '[[\yii\web\Request::$hostInfo|Request::$hostInfo]] before [[$denyCallback]] is called to make sure that '
. 'an invalid host will not be used for further processing. You can set it to `null` to leave '
. '[[\yii\web\Request::$hostInfo|Request::$hostInfo]] untouched. Default value is empty string (this will '
. 'result creating relative URLs instead of absolute).';
$actualFirstSentence = BaseDoc::extractFirstSentence($initialText);
$expectedFirstSentence = 'fallback host info (e.g. `http://www.yiiframework.com`) used when '
$expectedFirstSentence = 'fallback host info (e.g. `https://www.yiiframework.com`) used when '
. '[[\yii\web\Request::$hostInfo|Request::$hostInfo]] is invalid.';
$this->assertEquals($expectedFirstSentence, $actualFirstSentence);
}

/**
* @link https://github.com/yiisoft/yii2-apidoc/pull/282
*/
Expand Down
6 changes: 3 additions & 3 deletions tests/support/controllers/ApiControllerMock.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\support\controllers;
Expand All @@ -15,4 +15,4 @@
class ApiControllerMock extends ApiController
{
use StdOutBufferControllerTrait;
}
}
6 changes: 3 additions & 3 deletions tests/support/controllers/GuideControllerMock.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\support\controllers;
Expand All @@ -15,4 +15,4 @@
class GuideControllerMock extends GuideController
{
use StdOutBufferControllerTrait;
}
}
4 changes: 2 additions & 2 deletions tests/support/controllers/StdOutBufferControllerTrait.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* @link http://www.yiiframework.com/
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @license https://www.yiiframework.com/license/
*/

namespace yiiunit\apidoc\support\controllers;
Expand Down