Skip to content

Commit 81fbd52

Browse files
author
Igor Chepurnoy
committed
fix tests
1 parent d0b4d46 commit 81fbd52

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 5.6
54
- 7.0
65

76
# faster builds on new travis setup not using sudo
@@ -15,7 +14,7 @@ cache:
1514

1615
install:
1716
- travis_retry composer self-update && composer --version
18-
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
17+
- travis_retry composer global require "fxp/composer-asset-plugin:^1.2.0"
1918
- export PATH="$HOME/.composer/vendor/bin:$PATH"
2019
- travis_retry composer install --prefer-dist --no-interaction
2120

tests/CommentTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use yii\base\Event;
77
use yii\helpers\Json;
88
use yii2mod\comments\models\CommentModel;
9-
use yii2mod\comments\Module;
109
use yii2mod\comments\tests\data\DefaultController;
1110
use yii2mod\comments\tests\data\PostModel;
1211
use yii2mod\comments\tests\data\User;
@@ -156,6 +155,6 @@ private function generateEntity()
156155
'entity' => hash('crc32', get_class($post)),
157156
'entityId' => $post->id,
158157
'relatedTo' => get_class($post) . ':' . $post->id,
159-
]), Module::$name));
158+
]), 'comment'));
160159
}
161160
}

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* This is the base class for all yii framework unit tests.
1111
*/
12-
class TestCase extends \PHPUnit_Framework_TestCase
12+
class TestCase extends \PHPUnit\Framework\TestCase
1313
{
1414
protected function setUp()
1515
{

0 commit comments

Comments
 (0)