Skip to content

Commit 64c1beb

Browse files
committed
Fix exception message
1 parent 6155f54 commit 64c1beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/wpunit/ModelRelationshipTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testSetValueThrowsExceptionForInvalidArrayItem() {
9898
$relationship = new ModelRelationship('posts', $definition);
9999

100100
$this->expectException(\InvalidArgumentException::class);
101-
$this->expectExceptionMessage('Multiple relationship value must be an array of valid values.');
101+
$this->expectExceptionMessage('Relationship value must be a valid value.');
102102

103103
$relationship->setValue(['not', 'models']);
104104
}

0 commit comments

Comments
 (0)