Skip to content

Commit

Permalink
update tests folder links (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell authored Aug 26, 2023
1 parent 5a79128 commit 700abc7
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
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

0 comments on commit 700abc7

Please sign in to comment.