Skip to content

Commit dbd8c29

Browse files
committed
Fix tests
1 parent e4cb6c4 commit dbd8c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/wpunit/ModelRelationshipTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testSetValueThrowsExceptionForInvalidSingleValue() {
6666
$relationship = new ModelRelationship('post', $definition);
6767

6868
$this->expectException(\InvalidArgumentException::class);
69-
$this->expectExceptionMessage('Single relationship value must be a Model instance or null.');
69+
$this->expectExceptionMessage('Relationship value must be a valid value.');
7070

7171
$relationship->setValue('invalid');
7272
}
@@ -96,7 +96,7 @@ public function testSetValueThrowsExceptionForInvalidArrayItem() {
9696
$relationship = new ModelRelationship('posts', $definition);
9797

9898
$this->expectException(\InvalidArgumentException::class);
99-
$this->expectExceptionMessage('Multiple relationship value must be an array of Model instances.');
99+
$this->expectExceptionMessage('Multiple relationship value must be an array of valid values.');
100100

101101
$relationship->setValue(['not', 'models']);
102102
}

0 commit comments

Comments
 (0)