We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81fe3f commit 7ff480eCopy full SHA for 7ff480e
tests/PicqerTest/Financials/Moneybird/ModelTest.php
@@ -114,6 +114,9 @@ public function testRegisterAttributesAsDirty()
114
$this->assertEquals('id', $invoice->getDirty()[0]);
115
$this->assertEquals('invoice_date', $invoice->getDirty()[1]);
116
$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'));
120
121
//check if the getDirtyValues from is null (new object)
122
$this->assertEquals(null, $invoice->getDirtyValues()['invoice_date']['from']);
0 commit comments