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

migrationInProgressSetsExpectedMessage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
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