Passed
Branch master (c443f0)
by Johan
04:40
created

ScoringCreateObjectTest::testCreateObjectScoring()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
// php artisan test
4
namespace Tests\Unit;
5
6
// use PHPUnit\Framework\TestCase;
7
use Tests\TestCase;
8
use Joki20\Http\Controllers\PokerSquares;
9
use Joki20\Http\Controllers\Setup;
10
use Joki20\Http\Controllers\Scoring;
11
use Illuminate\Support\Facades\Session;
12
13
/**
14
 * Test cases for trait Scoring.
15
 */
16
class ScoringCreateObjectTest extends TestCase
17
{
18
    // /**
19
    //  * Construct object and verify that the object is instance of class
20
    //  */
21
    public function testCreateObjectScoring()
22
    {
23
        $scoring = new Scoring();
24
        $this->assertInstanceOf("\Joki20\Http\Controllers\Scoring", $scoring);
25
    }
26
27
    public function testSetPointsSessions()
28
    {
29
        $scoring = new Scoring();
30
31
        $scoring->setPointsSessions();
32
33
        $exp = null;
34
        $res = session('dataRow');
35
36
        $this->assertEquals($exp, $res);
37
38
    }
39
}
40