Passed
Push — main ( 925fbd...c6945e )
by Diego
03:10
created

StatusTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
c 1
b 1
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testClose() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Blackmine\Tests\Model\Issue;
6
7
use Blackmine\Model\Issue\Status;
8
use Blackmine\Tests\Model\AbstractModelTest;
9
10
class StatusTest extends AbstractModelTest
11
{
12
    public const TEST_MODEL = Status::class;
13
14
    public function testClose()
15
    {
16
        $this->testable_entity->close();
0 ignored issues
show
Bug introduced by
The method close() does not exist on Blackmine\Model\AbstractModel. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
        $this->testable_entity->/** @scrutinizer ignore-call */ 
17
                                close();
Loading history...
17
        $this->assertTrue($this->testable_entity->isClosed());
0 ignored issues
show
Bug introduced by
The method isClosed() does not exist on Blackmine\Model\AbstractModel. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        $this->assertTrue($this->testable_entity->/** @scrutinizer ignore-call */ isClosed());
Loading history...
18
    }
19
}
20