GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a54314...1f466c )
by Pavel
04:30
created

MaterializedPathQueryTraitTestCase::testRoots()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
/**
3
 * @link https://github.com/paulzi/yii2-materialized-path
4
 * @copyright Copyright (c) 2015 PaulZi <[email protected]>
5
 * @license MIT (https://github.com/paulzi/yii2-materialized-path/blob/master/LICENSE)
6
 */
7
8
namespace paulzi\materializedPath\tests;
9
10
use paulzi\materializedPath\tests\models\Node;
11
use paulzi\materializedPath\tests\models\AttributeModeNode;
12
use paulzi\materializedPath\tests\models\MultipleTreeNode;
13
use Yii;
14
15
/**
16
 * @author PaulZi <[email protected]>
17
 */
18
class MaterializedPathQueryTraitTestCase extends BaseTestCase
19
{
20
    public function testRoots()
21
    {
22
        $data = [1, 14];
23
        $this->assertEquals($data, array_map(function ($value) { return $value->id; }, Node::find()->roots()->all()));
24
        $this->assertEquals($data, array_map(function ($value) { return $value->id; }, AttributeModeNode::find()->roots()->all()));
25
        $this->assertEquals($data, array_map(function ($value) { return $value->id; }, MultipleTreeNode::find()->roots()->all()));
26
    }
27
}