Skip to content

Commit 263de74

Browse files
aszenzhomersimpsons
andcommitted
test: Fix assertion
Co-authored-by: homersimpsons <[email protected]>
1 parent 3da0413 commit 263de74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/SchemaAnalyzerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ public function testWringTableName()
554554
$schemaManager = $this->getCompleteSchemaManager();
555555

556556
$schemaAnalyzer = new SchemaAnalyzer($schemaManager);
557-
$this->expectException(SchemaAnalyzerTableNotFoundException::class, "Could not find table 'rights'. Did you mean 'right'?");
557+
$this->expectException(SchemaAnalyzerTableNotFoundException::class);
558+
$this->expectExceptionMessage("Could not find table 'rights'. Did you mean 'right'?");
558559
$junctionTables = $schemaAnalyzer->getShortestPath('role', 'rights');
559560
}
560561
}

0 commit comments

Comments
 (0)