Passed
Pull Request — master (#439)
by Alejandro
11:54
created

MigrationsExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A migrationInProgressSetsExpectedMessage() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\Common\Exception;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\Common\Exception\MigrationsException;
8
9
class MigrationsExceptionTest extends TestCase
10
{
11
    /** @test */
12
    public function migrationInProgressSetsExpectedMessage(): void
13
    {
14
        $e = MigrationsException::migrationInProgress();
15
16
        $this->assertEquals('Migrations already in progress. Skipping.', $e->getMessage());
17
    }
18
}
19