Test Failed
Push — master ( 766a39...696a12 )
by Dispositif
09:33
created

WikiArrayTraitTest::testCompleteFantasyOrder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
/**
3
 * This file is part of dispositif/wikibot application
4
 * 2019 : Philippe M. <[email protected]>
5
 * For the full copyright and MIT license information, please view the LICENSE file.
6
 */
7
8
declare(strict_types=1);
9
10
namespace App\Domain\Utils;
11
12
use PHPUnit\Framework\TestCase;
13
14
class WikiArrayTraitTest extends TestCase
15
{
16
    use WikiArrayTrait;
17
18
    public function testCompleteFantasyOrder()
19
    {
20
        $fantasyOrder = ['fantaisie', 'auteur', 'titre', 'année'];
21
        $cleanOrder = ['bla', 'first', 'auteur', 'titre', 'sous-titre', 'année', 'fantaisie', 'fantaisie2'];
22
23
        $this::assertSame(
24
            ['bla', 'first', 'fantaisie', 'fantaisie2', 'auteur', 'titre', 'sous-titre', 'année'],
25
            $this->completeFantasyOrder($fantasyOrder, $cleanOrder)
26
        );
27
    }
28
29
}
30