Skip to content

Commit 7ff480e

Browse files
Update ModelTest.php
See #198 - extend test for issue
1 parent a81fe3f commit 7ff480e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/PicqerTest/Financials/Moneybird/ModelTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public function testRegisterAttributesAsDirty()
114114
$this->assertEquals('id', $invoice->getDirty()[0]);
115115
$this->assertEquals('invoice_date', $invoice->getDirty()[1]);
116116
$this->assertEquals(2, count($invoice->getDirty()));
117+
$this->assertTrue($invoice->isAttributeDirty('id'));
118+
$this->assertTrue($invoice->isAttributeDirty('invoice_date'));
119+
$this->assertFalse($invoice->isAttributeDirty('unknown_key'));
117120

118121
//check if the getDirtyValues from is null (new object)
119122
$this->assertEquals(null, $invoice->getDirtyValues()['invoice_date']['from']);

0 commit comments

Comments
 (0)