Code Duplication    Length = 13-13 lines in 2 locations

tests/FwlibTest/Db/DbDiffTest.php 2 locations

@@ 425-437 (lines=13) @@
422
     * @expectedException \Exception
423
     * @expectedExceptionMessage PK not all assigned
424
     */
425
    public function testExecuteWithNotEnoughPkInDataNew()
426
    {
427
        $dbDiff = $this->buildMock();
428
429
        // No PK column uuid
430
        $dataNew = [
431
            self::$tableUser => [
432
                'title' => 'User Title',
433
            ],
434
        ];
435
436
        $dbDiff->execute($dataNew);
437
    }
438
439
440
    /**
@@ 444-456 (lines=13) @@
441
     * @expectedException \Exception
442
     * @expectedExceptionMessage must have PK
443
     */
444
    public function testExecuteWithTableHaveNoPk()
445
    {
446
        $dbDiff = $this->buildMock();
447
448
        // No PK column uuid
449
        $dataNew = [
450
            'table_not_exist' => [
451
                'title' => 'User Title',
452
            ],
453
        ];
454
455
        $dbDiff->execute($dataNew);
456
    }
457
458
459
    /**